how to trigger button using shortcut keys
Hi Friends i want to trigger a button in java swings using keyboard keys.
for ex: a button called "Enter" either i click mouse or i press ALT+E to trigger it.
Plz give me sample coding if u have
By
vinod
Hi Friends i want to trigger a button in java swings using keyboard keys.
for ex: a button called "Enter" either i click mouse or i press ALT+E to trigger it.
Plz give me sample coding if u have
By
vinod
Try looking at the tutorials...
http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
use button.setMnemonic("E");
triggers ALT+E
Message was edited by:
Yannix