Results 1 to 2 of 2
Thread: Mouse Buttons
- 09-07-2010, 11:13 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 31
- Rep Power
- 0
Mouse Buttons
I'm working with the robot class. I want to push the right mouse button virtually, and for a Robot instance r, I can say:
There is MouseEvent.BUTTON1, MouseEvent.BUTTON2 and MouseEvent.BUTTON3. Which does each of these actually correlate to on a mouse? 1=left and 2 = right?Java Code:r.mousePress(MouseEvent.BUTTON1);
Also, how do I virtually press the application key (between ctrl and alt right side)? Seems to be the one key I can't use.
Can't find this basic bit of vital info online elsewhere... thanks for helpingLast edited by xael; 09-07-2010 at 11:29 PM.
- 09-07-2010, 11:39 PM #2
Similar Threads
-
Mouse
By PhQ in forum AWT / SwingReplies: 18Last Post: 08-18-2010, 04:05 PM -
Mouse Listener for mouse floating over object?
By Krooger in forum AWT / SwingReplies: 1Last Post: 11-18-2009, 04:34 AM -
Mouse events, are they best or only way to go?
By dbashby in forum New To JavaReplies: 2Last Post: 04-10-2009, 04:34 PM -
The mouse and the cheese
By Don Quixote in forum Java 2DReplies: 4Last Post: 08-15-2007, 10:55 PM -
Mouse over JButton
By sandor in forum AWT / SwingReplies: 1Last Post: 05-17-2007, 09:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks