• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

What to do to make my mnemonic work?  RSS feed

 
Greenhorn
Posts: 23
IntelliJ IDE Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I set up mnemonic for my "File" JMenu, but program does not seem to register my shortcut (alt + F). Setting for the mnemonics is in the MainFrame. What causes this behavior?

 
Rancher
Posts: 2934
19
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is about mnemonics. Why would you post over 500 lines of code??? That is way too much!!!

Create a proper SSCCE that demonstrates your problem.

So to test mnemonics all you need is a frame with a JButton. You set the mnemonics for the button and add an ActionLilstener to the button. The whole class should be about 20 lines of code.

Once you get this simple class working then you apply the knowledge to your real application. It is much easier to debug a problem with 20 lines of code than 500.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!