基于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
、
Chia矿机,Spinservers怎么样?Spinservers好不好,Spinservers大硬盘服务器。Spinservers刚刚在美国圣何塞机房补货120台独立服务器,CPU都是双E5系列,64-512GB DDR4内存,超大SSD或NVMe存储,数量有限,机器都是预部署好的,下单即可上架,无需人工干预,有需要的朋友抓紧下单哦。Spinservers是Majestic Hosting So...
特网云为您提供高速、稳定、安全、弹性的云计算服务计算、存储、监控、安全,完善的云产品满足您的一切所需,深耕云计算领域10余年;我们拥有前沿的核心技术,始终致力于为政府机构、企业组织和个人开发者提供稳定、安全、可靠、高性价比的云计算产品与服务。官方网站:https://www.56dr.com/ 10年老品牌 值得信赖 有需要的请联系======================特网云推出多IP云主机...
Cloudxtiny是一家来自英国的主机商,提供VPS和独立服务器租用,在英国肯特自营数据中心,自己的硬件和网络(AS207059)。商家VPS主机基于KVM架构,开设在英国肯特机房,为了庆祝2021年欧洲杯决赛英格兰对意大利,商家为全场VPS主机提供50%的折扣直到7月31日,优惠后最低套餐每月1.5英镑起。我们对这场比赛有点偏见,但希望这是一场史诗般的决赛!下面列出几款主机套餐配置信息。CPU...