Looking for sample on how to trap enter key or double click so I can perform other actions...thanks!
Printable View
Looking for sample on how to trap enter key or double click so I can perform other actions...thanks!
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
Thank you...is there a similar listener to trap the enter key?