Description: 有时候,在Java应用程序开发中,如:远程监控或远程教学,常常需要对计算机的屏幕进行截取,由于屏幕截取是比较接近操作系统的操作,在Windows操作系统下,该操作几乎成了VC、VB等的专利,事实上,使用Java JDK1.4 的Robot对象,来完成"屏幕截取操作,更加简单。Java JDK1.4 的Robot对象,该对象可以完成对"屏幕"像素的拷贝,完成屏幕图像截取操作。Java应用程序中可以直接调用此对象,完成对特定应用程序的屏幕截取,如果将此功能配合网络,便可以轻而易举地实现远程服务器屏幕的监视。本文向大家介绍如何用Java构建屏幕"照相机"并实现远程服务器屏幕的监视,并给出了相应的Java源代码。-Sometimes, in the development of Java applications, such as: remote monitoring or remote teaching, often need to interception of the computer screen, the Screen Capture is relatively close to the operation of the operating system, the Windows operating system, the operation has become almost VC , VB, etc. patents, in fact, the use of Java JDK1.4 Robot object, to complete the screen interception operation, more simple the Java JDK1.4 Robot object, the object can be completed on a copy of the " screen" pixel, the completion screen image capture operation Java applications can directly call this object, screen capture for specific applications, if this functionality with the network, they can easily achieve the monitoring of the remote server screen to screen describes how to build in Java " camera" and the screen of the remote server monitoring, and the Java source code. Platform: |
Size: 3895296 |
Author:陈桂贤 |
Hits:
Description: java网络编程。设计一个监控网站内容的程序,要求该程序:
1) 提供输入界面,可输入被监控的网站网址,和用来分析的关键字;需判断网址和关键字的输入是否正确。
2) 单击开始按钮,获取网页内容,将网页html代码输出到上面的多行文本框中,并用关键字进行匹配,分析是否存在异常内容,如果存在异常,则输出到下面的多行文本框中。(背景黑色,文字黄色)
3) 重新输入网址后,则情况上一次的所有输出内容(两个多个文本框中的内容),再进行新的输出。
-java network programming. Designing a monitoring program of site content requires the program: 1) to provide input interface, you can enter the site URL to be monitored, and for keyword analysis the need to enter the URL and keywords judgment is correct. 2) Click the Start button, access web content, the web page html code output to the above multi-line text box and use the keyword matching, to analyze whether abnormal contents, if there is an abnormality, the output to the following multi-line text box in. (Black background, text, yellow) 3) re-enter the URL, then the situation once all output (more than two content text box), and then the new output. Platform: |
Size: 6144 |
Author:shuang |
Hits: