Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
Point p = component.getLocation();
|
||||
Robot robot = new Robot();
|
||||
robot.mouseMove(p.getX(), p.getY()); //you may want to move a few pixels closer to the center by adding to these values
|
||||
robot.mousePress(InputEvent.BUTTON1_MASK); //BUTTON1_MASK is the left button,
|
||||
//BUTTON2_MASK is the middle button, BUTTON3_MASK is the right button
|
||||
robot.mouseRelease(InputEvent.BUTTON1_MASK);
|
||||
|
|
@ -0,0 +1 @@
|
|||
button.doClick(); //optionally, give an integer argument for the number of milliseconds to hold the button down
|
||||
Loading…
Add table
Add a link
Reference in a new issue