Searched refs:robot (Results 1 - 25 of 192) sorted by relevance

12345678

/openjdk7/jdk/test/java/awt/Robot/CtorTest/
H A DCtorTest.java28 @author Dmitry Cherepanov area=awt.robot
50 Robot robot = new Robot(graphicsDevice);
51 clickOnFrame(robot);
55 private static void clickOnFrame(Robot robot) { argument
63 robot.mouseMove(150, 150);
64 robot.delay(50);
65 robot.mousePress(InputEvent.BUTTON1_MASK);
66 robot.delay(50);
67 robot.mouseRelease(InputEvent.BUTTON1_MASK);
/openjdk7/jdk/test/java/awt/Robot/RobotExtraButton/
H A DRobotExtraButton.java4 @summary verifies that robot could accept extra buttons
16 static Robot robot; field in class:RobotExtraButton
32 Util.waitForIdle(robot);
40 robot = new Robot();
41 robot.mouseMove(frame.getLocationOnScreen().x + frame.getWidth()/2, frame.getLocationOnScreen().y + frame.getHeight()/2);
49 robot.mousePress(InputEvent.BUTTON1_MASK);
50 robot.delay(50);
51 robot.mouseRelease(InputEvent.BUTTON1_MASK);
52 Util.waitForIdle(robot);
56 robot
[all...]
/openjdk7/jdk/test/java/awt/Frame/7024749/
H A Dbug7024749.java49 Robot robot = Util.createRobot();
50 robot.setAutoDelay(1000);
51 Util.waitForIdle(robot);
52 robot.delay(1000);
53 Util.clickOnTitle(f, robot);
54 Util.waitForIdle(robot);
/openjdk7/jdk/test/java/awt/Component/F10TopToplevel/
H A DF10TopToplevel.java90 Robot robot;
92 robot = new Robot();
94 throw new RuntimeException("cannot create robot.", e);
97 robot.mouseMove(dialog.getLocationOnScreen().x + dialog.getWidth()/2,
99 robot.delay(5);
100 robot.mousePress(InputEvent.BUTTON1_MASK);
101 robot.delay(5);
102 robot.mouseRelease(InputEvent.BUTTON1_MASK);
103 robot.delay(5);
104 robot
[all...]
/openjdk7/jdk/test/java/awt/Choice/ChoiceKeyEventReaction/
H A DChoiceKeyEventReaction.java39 Robot robot; field in class:ChoiceKeyEventReaction
82 robot = new Robot();
83 Util.waitForIdle(robot);
93 robot.mouseMove(pt.x + choice1.getWidth()/2, pt.y + choice1.getHeight()/2);
94 Util.waitForIdle(robot);
95 robot.mousePress(button);
96 robot.delay(10);
97 robot.mouseRelease(button);
98 Util.waitForIdle(robot);
100 robot
[all...]
/openjdk7/jdk/test/java/awt/WMSpecificTests/Mutter/
H A DMutterMaximizeTest.java104 private static void rmove(Robot robot, Point p) { argument
105 robot.mouseMove(p.x, p.y);
107 private static void rdown(Robot robot) { argument
108 robot.mousePress(InputEvent.BUTTON1_MASK);
109 robot.delay(50);
111 private static void rup(Robot robot) { argument
112 robot.mouseRelease(InputEvent.BUTTON1_MASK);
113 robot.delay(50);
116 public static void click(Robot robot) { argument
117 rdown(robot);
121 doubleClick(Robot robot) argument
126 dragWindow(Window w, int dx, int dy, Robot robot) argument
[all...]
/openjdk7/jdk/test/java/awt/Choice/ChoiceMouseWheelTest/
H A DChoiceMouseWheelTest.java86 Robot robot = new Robot();
87 robot.setAutoDelay(100);
88 robot.waitForIdle();
93 robot.mouseMove(x, pt.y + size.height / 2);
101 robot.mouseWheel(1);
102 robot.waitForIdle();
110 robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
111 robot.waitForIdle();
112 robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
113 robot
[all...]
/openjdk7/jdk/test/java/awt/Desktop/OpenByUNCPathNameTest/
H A DOpenByUNCPathNameTest.java52 Robot robot = null;
55 robot = new Robot();
59 pressAltF4Keys(robot);
74 pressAltF4Keys(robot);
81 private static void pressAltF4Keys(Robot robot) { argument
82 if (robot != null) {
83 robot.keyPress(KeyEvent.VK_ALT);
84 robot.keyPress(KeyEvent.VK_F4);
85 robot.delay(50);
86 robot
[all...]
/openjdk7/jdk/test/java/awt/Focus/FrameJumpingToMouse/
H A DFrameJumpingToMouse.java49 Robot robot = Util.createRobot(); field in class:FrameJumpingToMouse
67 robot.mouseMove(loc.x + frame.getWidth() / 4, loc.y + frame.getInsets().top / 2);
68 robot.delay(50);
69 robot.mousePress(InputEvent.BUTTON1_MASK);
70 robot.delay(50);
71 robot.mouseMove(loc.x + 100, loc.y + 50);
72 robot.delay(50);
73 robot.mouseRelease(InputEvent.BUTTON1_MASK);
75 Util.waitForIdle(robot);
78 robot
[all...]
/openjdk7/jdk/test/java/awt/Window/AlwaysOnTop/
H A DAlwaysOnTopEvenOfWindow.java60 // position robot before show(): there may be point-to-focus;
61 Robot robot = Util.createRobot();
62 robot.mouseMove(125, 75);
66 Util.waitForIdle(robot);
71 robot.mousePress(InputEvent.BUTTON1_MASK);
72 robot.delay(50);
73 robot.mouseRelease(InputEvent.BUTTON1_MASK);
74 Util.waitForIdle(robot);
/openjdk7/jdk/test/javax/swing/JList/6462008/
H A Dbug6462008.java45 private static Robot robot; field in class:bug6462008
49 robot = new Robot();
50 robot.setAutoDelay(100);
79 robot.keyPress(KeyEvent.VK_SPACE);
80 robot.keyRelease(KeyEvent.VK_SPACE);
88 robot.keyPress(KeyEvent.VK_CONTROL);
89 robot.keyPress(KeyEvent.VK_SPACE);
90 robot.keyRelease(KeyEvent.VK_SPACE);
91 robot.keyRelease(KeyEvent.VK_CONTROL);
99 robot
[all...]
/openjdk7/jdk/test/java/awt/Focus/ChoiceFocus/
H A DChoiceFocus.java57 static Robot robot; field in class:ChoiceFocus
94 robot = Util.createRobot();
95 robot.setAutoWaitForIdle(true);
96 robot.setAutoDelay(50);
99 Util.waitForIdle(robot);
100 Util.clickOnComp(c1, robot);
101 Util.waitForIdle(robot);
104 Util.clickOnComp(c1, robot);
108 robot.mouseMove(pt.x + c2.getWidth()/2, pt.y + c2.getHeight()/2);
109 Util.waitForIdle(robot);
[all...]
/openjdk7/jdk/test/java/awt/Frame/WindowDragTest/
H A DWindowDragTest.java50 Robot robot = new Robot();
51 robot.setAutoDelay(1000);
64 robot.delay(1000);
70 robot.delay(1000);
76 robot.mouseMove(p.x + (int)(d.getWidth() / 2), p.y + (int)frame2.getInsets().top / 2);
77 Util.waitForIdle(robot);
80 robot.mousePress(InputEvent.BUTTON1_MASK);
81 Util.waitForIdle(robot);
85 Util.waitForIdle(robot);
88 robot
[all...]
/openjdk7/jdk/test/javax/swing/text/StyledEditorKit/4506788/
H A Dbug4506788.java61 Robot robot;
63 robot = new Robot();
77 robot.setAutoDelay(50);
78 robot.mouseMove(p.x, p.y);
79 robot.mousePress(InputEvent.BUTTON1_MASK);
80 robot.mouseRelease(InputEvent.BUTTON1_MASK);
81 robot.keyPress(KeyEvent.VK_RIGHT);
82 robot.keyRelease(KeyEvent.VK_RIGHT);
83 robot.keyPress(KeyEvent.VK_X);
84 robot
[all...]
/openjdk7/jdk/test/java/awt/event/MouseWheelEvent/InfiniteRecursion/
H A DInfiniteRecursion.java51 final static Robot robot = Util.createRobot(); field in class:InfiniteRecursion
87 Util.waitForIdle(robot);
89 Util.pointOnComp(jButton, robot);
90 Util.waitForIdle(robot);
93 robot.mouseWheel(1);
94 robot.delay(10);
98 robot.mouseWheel(-1);
99 robot.delay(10);
103 Util.waitForIdle(robot);
H A DInfiniteRecursion_1.java51 final static Robot robot = Util.createRobot(); field in class:InfiniteRecursion_1
85 Util.waitForIdle(robot);
87 Util.pointOnComp(jButton, robot);
88 Util.waitForIdle(robot);
91 robot.mouseWheel(1);
92 robot.delay(10);
96 robot.mouseWheel(-1);
97 robot.delay(10);
100 Util.waitForIdle(robot);
H A DInfiniteRecursion_2.java57 final static Robot robot = Util.createRobot(); field in class:InfiniteRecursion_2
97 Util.waitForIdle(robot);
99 Util.pointOnComp(jButton, robot);
100 Util.waitForIdle(robot);
103 robot.mouseWheel(1);
104 robot.delay(10);
108 robot.mouseWheel(-1);
109 robot.delay(10);
112 Util.waitForIdle(robot);
H A DInfiniteRecursion_3.java51 final static Robot robot = Util.createRobot(); field in class:InfiniteRecursion_3
81 Util.waitForIdle(robot);
83 Util.pointOnComp(jButton, robot);
84 Util.waitForIdle(robot);
87 robot.mouseWheel(1);
88 robot.delay(10);
92 robot.mouseWheel(-1);
93 robot.delay(10);
96 Util.waitForIdle(robot);
H A DInfiniteRecursion_4.java48 final static Robot robot = Util.createRobot(); field in class:InfiniteRecursion_4
69 Util.waitForIdle(robot);
71 Util.pointOnComp(frame, robot);
72 Util.waitForIdle(robot);
75 robot.mouseWheel(1);
76 robot.delay(10);
80 robot.mouseWheel(-1);
81 robot.delay(10);
84 Util.waitForIdle(robot);
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/
H A DSubMenuShowTest.java42 Robot robot; field in class:SubMenuShowTest
57 robot = Util.createRobot();
88 Util.waitForIdle(robot);
92 robot.keyPress(KeyEvent.VK_CONTROL);
93 robot.delay(20);
95 robot.keyPress(KeyEvent.VK_ALT);
96 robot.delay(20);
97 robot.keyPress(KeyEvent.VK_F);
98 robot.delay(20);
99 robot
[all...]
/openjdk7/jdk/test/javax/swing/JPopupMenu/6987844/
H A Dbug6987844.java44 Robot robot = new Robot();
45 robot.setAutoDelay(200);
71 robot.mouseMove(point1.x + 1, point1.y + 1);
72 robot.mousePress(InputEvent.BUTTON1_MASK);
73 robot.mouseRelease(InputEvent.BUTTON1_MASK);
75 robot.mouseMove(point2.x + 1, point2.y + 1);
76 robot.mousePress(InputEvent.BUTTON1_MASK);
77 robot.mouseRelease(InputEvent.BUTTON1_MASK);
78 robot.mousePress(InputEvent.BUTTON1_MASK);
79 robot
[all...]
/openjdk7/jdk/test/java/awt/Mouse/ExtraMouseClick/
H A DExtraMouseClick.java52 Robot robot; field in class:ExtraMouseClick
96 robot = new Robot();
101 Util.waitForIdle(robot); //a time to show Frame
154 robot.mouseMove(fp.x + frame.getWidth()/2, fp.y + frame.getHeight()/2 );
156 robot.mousePress(InputEvent.BUTTON1_MASK );
158 robot.mouseMove(fp.x + frame.getWidth()/2 + i, fp.y + frame.getHeight()/2 );
160 robot.mouseRelease(InputEvent.BUTTON1_MASK );
161 robot.delay(1000);
169 robot.mouseMove(fp.x + frame.getWidth()/2, fp.y + frame.getHeight()/2 );
171 robot
[all...]
/openjdk7/jdk/test/java/awt/Window/Grab/
H A DGrabTest.java46 private static Robot robot; field in class:GrabTest
104 robot = new Robot();
109 Util.waitForIdle(robot);
118 Util.clickOnComp(b, robot);
119 Util.waitForIdle(robot);
128 Util.clickOnComp(w, robot);
129 Util.waitForIdle(robot);
138 Util.clickOnComp(f, robot);
139 Util.waitForIdle(robot);
149 Util.clickOnTitle(f, robot);
[all...]
/openjdk7/jdk/test/java/awt/Focus/TypeAhead/
H A DTestFocusFreeze.java53 private static Robot robot = Util.createRobot(); field in class:TestFocusFreeze
57 KeyboardFocusManager testKFM = new TestKFM(robot);
62 Util.waitForIdle(robot);
119 robot.keyPress(KeyEvent.VK_SPACE);
120 robot.delay(50);
121 robot.keyRelease(KeyEvent.VK_SPACE);
124 Util.waitForIdle(robot);
129 Robot robot; field in class:TestKFM
130 public TestKFM(Robot robot) { argument
131 this.robot
[all...]
/openjdk7/jdk/test/java/awt/List/EmptyListEventTest/
H A DEmptyListEventTest.java45 Robot robot = new Robot();
46 robot.setAutoDelay(50);
60 robot.mouseMove(point.x, point.y);
61 robot.mousePress(InputEvent.BUTTON1_MASK);
62 robot.mouseRelease(InputEvent.BUTTON1_MASK);
81 robot.keyPress(KeyEvent.VK_ENTER);
82 robot.keyRelease(KeyEvent.VK_ENTER);
86 robot.keyPress(KeyEvent.VK_SPACE);
87 robot.keyRelease(KeyEvent.VK_SPACE);
91 robot
[all...]

Completed in 1087 milliseconds

12345678