tags:

views:

41

answers:

1
+2  Q: 

swing accelerators

I read the difference about mnemonics and accelerators but now I was wondering if these accelerators are used only with menu items or also on other JComponents.

+5  A: 

You can use key bindings for any JComponent :)

Check out this guide

willcodejavaforfood
+1 Also a good reason to consider `Action`: http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/misc/action.html
trashgod
+ 1 for `Action` suggestion.
eugener