File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenuItems tricks for displaying short cut text

 
Bill White
Ranch Hand
Posts: 82
  • 0
  • 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
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • 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
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic