/Users/lyon/j4p/src/video/RobotTest.java
|
1 package video;
2
3 import gui.ClosableJFrame;
4
5 import java.awt.Robot;
6 import java.awt.AWTException;
7
8 /**
9 * DocJava, Inc.
10 * http://www.docjava.com
11 * Programmer: dlyon
12 * Date: Dec 15, 2004
13 * Time: 6:42:09 PM
14 */
15 public class RobotTest {
16 public static void main(String[] args) {
17 ClosableJFrame cf = new ClosableJFrame();
18 cf.setSize(200,200);
19 cf.show();
20 Robot r = null;
21 try {
22 r = new Robot();
23 } catch (AWTException e) {
24 e.printStackTrace();
25 }
26 System.out.println("done wating...wait for idle");
27 r.waitForIdle();
28 System.out.println("your idle");
29 }
30 }
31