• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

(Contractors) using icons and accelerate keys

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
I would like to know if icons and accelerate keys is useful in my menu items. What do you think?
I created a framework to generate my menubar, is ti good for junior programmers?
Thanks,
Wilder C. Rodrigues
SCPJ2
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you haven't already, take a look at Actions. These are very handy for providing menu/task bar functionality. They provide the ability to coordinate access to single functions through several paths, for example, a key press, a menu choice or a button click. They can be configured to have icons, which can appear beside the menu items they represent (when added to a menu) or in buttons in a task bar. They can be disabled or enabled, and, if the action is disabled, the menu item, task bar button and key press are ALL disabled in one go.
Easiest way to create them is as inner classes (either anonymous or named) that extend the abstract javax.swing.AbstractAction class.
 
reply
    Bookmark Topic Watch Topic
  • New Topic