主机基于java的远程桌面监控源代码

桌面监控  时间:2021-03-13  阅读:()

基于Java的远程桌面监控源代码来源: 熊哲的日志import java. io. *;import java, awt ・ Choice;import java. awt. Dialog;import java. awt. FlowLayout;import java. awt. BorderLayout;import java. awt. Font;import java. awt. Color;import java.net. Socket;import java.net. InetAddress;import javax. swing. *;import java. awt. event. ActionListener;import java. awt. event. ActionEvcnt;import java. awt. event. WindowAdapter;import java. awt. event. WindowEvent;import java. awt. event. KeyAdapter;import java. awt. event. KeyEvent;import javax. swing, tree. DcfaultMutablcTrceNodc;import javax. swing, tree. DefaultTreeCellRenderer;

import javax. swing, tree. DefaultTreeModel;import javax. swing, tree. TreePath;import javax. swing, tree. TreeNode;import java. awt. Image;import javax. swing. Imagelcon;import java. awt. Toolkit;public class midClient

{public static void main(String[] args) throws IOException

{try {

UIManagcr. sctLookAndFccl ("com. sun. jav a.swing, plaf. windows. WindowsLookAndFeeT7) ;

}catch(Exception el) {}new Ctree () ;class Ctree extends JFrame implements ActionListener

{boolean disConncct=false;boolean passOk=true;boolean startPort=false;

boolean DialogApp=false;boolean existFile;

FileOutputStream fo;

//KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL*KL* If/ I

JMenuBar menu二new JMenuBar  ;

JMcnu mnuFile =ncw JMenu  z文件“ 

JMcnuItcm AddComputcr =ncw JMcnu It cm  z添加新主机〃  

JMenuItem mnuFileExit =new JMenultem  〃退岀〃  ;

/ / •9

II /

JButton Addcomputer二new JButton  z隐藏主机“ 

JLabel Ilost=new JLabel  〃选择主机〃  ;

JPancl H A=ncw JPanel  ;

Choice Address=new Choice  ;

JLabel Connectlp=new JLabel  〃服务器IP地址“ 

JTextField ConnectTpText=new JTextField 14 ;

DcfaultMutablcTrccNodc Root二new DcfaultMutablcTrccNodc  z远程控制管理器〃  

JTree tree二new JTree Root ; ;

JPopupMenu popM二new JPopupMenu  ;

JMenuItem cy_load二new JMenuItem  〃下载"  

JMcnuItcm cy delcct=ncw JMenuItem 删除〃  ;

JMenuItem cy_refurbish=new JMenultem 〃刷新子项〃  ;

JFileChooser Jsave二new JFileChooser  ;

JScrolIPane treePane=new JScrolIPane  ;

DefaultTreeCel1 Renderer cel 1 Renderer二nul1;

DefaultMutableTreeNode nodel二null;

DefaultTreeModel treeModel;

File selectFile;

Socket ClientSocket=null; //声名一个套接字

String HostName=null;int IPPort=0;

PrintWriter out二null;

BufferedReader in二null;

〃子窗口按钮

Dialog AddHost二null;

JTextField Computer二null;

JTextField Portl=nul1;

JButton ok=new JButton  〃确定“ 

JButton cancel=new JButton  〃取消〃  

Dialog 1isten 二nul1;

JPasswordField passw 二new JPasswordField 10 ;

JButton okl =ncw JButton  z确认〃 ;

JButton cancell =new JButton C取消〃  ;

File inputFile二new F订e 〃 d:/〃  

File[] list=inputFile. listRoots  ;int Jrate=O;int finish二0;int ByteNum;

String fileName;boolcan copy二false;public Ct ree ()

{this ( “远程管理器〃 ) ipublic Ctree(String Title)

{super (Title) ;

Imagetitlephone二Toolkit. getDefaultToolkit() . createlmage( 〃 • /icons/client. gi D;this. seticonimage (titlephone) ;this. setSize(600, 500) ;thi s. setJMenuBar(menu) ;tree. setShowsRootHandles(true) ;

setFont () ;addWindows () ;

// tree. setEditable(false) ;

CormectlpText. setEditable(false) ;addListen() ;try

{

File AdressFile=new

File( “HostAddress ・ txt") ;if(!AdressFile. exists() )

{

AdressFi1e. createNewFi1e () ;i

FileReader readln^new

FileReader (AdressFile) ;

BufferedReader bufin二new

BufferedReader(read!n) ;

String choiceList二null;

String address, port;while( (choiceList=bufin. readLine() ) !=nul

1)

{

Root.add (new

DefaultMutableTreeNode(choiceList) ) ;

Address.add (choiceList) ;

!

bufin. closeO ;rcadln. closeO ;this. setVisible(true) ;

倉・

2

建站选择网站域名和IP主机地址之间关系和注意要点

今天中午的时候有网友联系到在选择网站域名建站和主机的时候问到域名和IP地址有没有关联,或者需要注意的问题。毕竟我们在需要建站的时候,我们需要选择网站域名和主机,而主机有虚拟主机,包括共享和独立IP,同时还有云服务器、独立服务器、站群服务器等形式。通过这篇文章,简单的梳理关于网站域名和IP之间的关系。第一、什么是域名所谓网站域名,就是我们看到的类似"www.laozuo.org",我们可以通过直接记...

腾讯云轻量应用服务器关于多个实例套餐带宽

腾讯云轻量应用服务器又要免费升级配置了,之前已经免费升级过一次了(腾讯云轻量应用服务器套餐配置升级 轻量老用户专享免费升配!),这次在上次的基础上再次升级。也许这就是良心云吧,名不虚传。腾讯云怎么样?腾讯云好不好。腾讯云轻量应用服务器 Lighthouse 是一种易于使用和管理、适合承载轻量级业务负载的云服务器,能帮助个人和企业在云端快速构建网站、博客、电商、论坛等各类应用以及开发测试环境,并提供...

百星数据(60元/月,600元/年)日本/韩国/香港cn2 gia云服务器,2核2G/40G/5M带宽

百星数据(baixidc),2012年开始运作至今,主要提供境外自营云服务器和独立服务器出租业务,根据网络线路的不同划分为:美国cera 9929、美国cn2 gia、香港cn2 gia、韩国cn2 gia、日本cn2 gia等云服务器及物理服务器业务。目前,百星数据 推出的日本、韩国、香港cn2 gia云服务器,2核2G/40G/5M带宽低至60元/月,600元/年。百星数据优惠码:优惠码:30...

桌面监控为你推荐
酒店回应名媛拼单泰国酒店写错入住人姓名有影响吗?小度商城小度智能音箱1s上面的黄圈不熄灭怎么回事,第一天还能熄灭怎么查询商标想要知道一个商标是否被注册,在哪里查到的比较权威?蓝色骨头手机蓝色骨头为什么还没上映lunwenjiancepaperfree论文检测怎样算合格seo优化工具SEO优化工具哪个好用点啊?www.522av.com跪求 我的三个母亲高清在线观看地址 我的三个母亲高清QVOD下载播放地址 我的三个母亲高清迅雷高速下载地址www.qq530.com谁能给我一个听歌的网站?www.765.com哪里有免费的电影网站m.2828dy.combabady为啥打不开了,大家帮我提供几个看电影的网址
新加坡服务器 wavecom 青果网 nerds hktv ca187 免费私人服务器 网页提速 上海电信测速网站 下载速度测试 服务器维护 中国电信网络测速 ebay注册 net空间 中国电信测速网站 东莞主机托管 镇江高防 美国主机 服务器是什么意思 ubuntu安装教程 更多