Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FBN: Acclerator Keys  RSS feed

Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implmented Accelerator keys for JMenu items. It works fine, when
focus is on the JButton. But if focus is in the JTextField/JComboBox, accelerator keys do not work.How can i solve this.
I have "CTRL-X" -- Accelerator key for Exit,"CTRL-A" -- Accelerator key for About and "F1" -- Accelerator key for Documenation.
However, this is not true for "F1" which is Acclerator Key for "Documentation". When I press "F1" , it invokes doc file, irrespectve
of the control on the window.
That feels good. Thanks. Here's a tiny ad:
ScroogeXHTML 7.2 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!