Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Monospaced Font

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic