|
-
September 14th, 2000, 04:41 PM
#1
mouse/keyboard events
Looking for sample on how to trap enter key or double click so I can perform other actions...thanks!
-
September 14th, 2000, 06:39 PM
#2
Re: mouse/keyboard events
Handle MouseListener for mouse events and
ActionListener for key events.
for capturing double click,
void mouseClicked(MouseEvent e)
{
if (e.getClickCount() == 2)
{
//write your code here
}
}
Kannan
-
September 15th, 2000, 01:23 PM
#3
Re: mouse/keyboard events
Thank you...is there a similar listener to trap the enter key?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|