This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Monospaced Font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Monospaced Font" Watch "Monospaced Font" New topic
Author

Monospaced Font

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
Hi, I'd like to use a monospaced font within a JMenuItem's text.
I guess its possible to use html to do this inside the String, but this plays up when you use spaces.

Is there another way, eg using Fonts?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Monospaced Font
 
Similar Threads
Print plain text with Printable interface
Tips on using this discussion software
JTextArea display
problem with spacing of text in JTextArea
Why the result of printing out the not-letter chars to console is different from to applets