Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JMenuItems tricks for displaying short cut text

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
example
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
I cant get the short cut text to line up neatly. Just placing spaces doesnt work. And ideas here?
What I am getting is:
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not too sure how you are trying to add the accelorator keystroke to the JMenuItem but here is the way you should be doing it.
 
Bill White
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,
Thanks for the reply.
I will be honest I didn't follow you at first but after I actually RTFM'd. I saw exactly what you meant.
Thanks a bunch!!!
[ March 17, 2003: Message edited by: Bill May Jr ]
reply
    Bookmark Topic Watch Topic
  • New Topic