主机基于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

10gbiz:香港/洛杉矶CN2直连线路VPS四折优惠,直连香港/香港/洛杉矶CN2四折

10gbiz怎么样?10gbiz在本站也多次分享过,是一家成立于2020的国人主机商家,主要销售VPS和独立服务器,机房目前有中国香港和美国洛杉矶、硅谷等地,线路都非常不错,香港为三网直连,电信走CN2,洛杉矶线路为三网回程CN2 GIA,10gbiz商家七月连续推出各种优惠活动,除了延续之前的VPS产品4折优惠,目前增加了美国硅谷独立服务器首月半价的活动,有需要的朋友可以看看。10gbiz优惠码...

限时新网有提供5+个免费域名

有在六月份的时候也有分享过新网域名注册商发布的域名促销活动(这里)。这不在九月份发布秋季域名促销活动,有提供年付16元的.COM域名,同时还有5个+的特殊后缀的域名是免费的。对于新网服务商是曾经非常老牌的域名注册商,早年也是有在他们家注册域名的。我们可以看到,如果有针对新用户的可以领到16元的.COM域名。包括还有首年免费的.XYZ、.SHOP、Space等等后缀的域名。除了.COM域名之外的其他...

Vultr再次发布充值多少送多少活动

昨天我们很多小伙伴们应该都有看到,包括有隔壁的一些博主们都有发布Vultr商家新的新用户注册福利活动。以前是有赠送100美元有效期30天的,这次改成有效期14天。早年才开始的时候有效期是60天的,这个是商家行为,主要还是吸引到我们后续的充值使用,毕竟他们的体验金赠送,在同类商家中算是比较大方的。昨天活动内容:重新调整Vultr新注册用户赠送100美元奖励金有效期14天今天早上群里的朋友告诉我,两年...

桌面监控为你推荐
www.20ren.com有什么好看的电影吗?来几个…罗伦佐娜维洛娜毛周角化修复液治疗毛周角化有用吗?谁用过?能告诉我吗?www.kaspersky.com.cn现在网上又有病毒了?www.ca800.comPLC好学吗m.yushuwu.org花样滑冰名将YU NA KIM的资料谁有?www.dm8.cc有谁知道海贼王最新漫画网址是多少??www.diediao.com谁知道台湾的拼音怎么拼啊?有具体的对照表最好!www.5566.com.cn大家在哪里在线看动漫?www.seowhy.com哪里有免费学习seo的chudian365陈译贤的《触电》 歌词
虚拟主机系统 hostgator 鲨鱼机 mach 鲜果阅读 阿里云浏览器 lol台服官网 流媒体加速 网通服务器 秒杀品 lamp兄弟连 金主 免费个人网页 买空间网 万网服务器 塔式服务器 godaddy退款 美国十大啦 globalsign 远程登录 更多