• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font size

 
dubey vandana
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
plz help me to achieve the following:
i have made menuitem such as File, Help, View etc.
I want to icrease the size and style of the font. how to do?
 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we cannot increase the size of the font normally in JMenu bar.
Good luck with other suggestion...
Rashid Ali
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... actually it's really easy to do this...



-Nate
 
Brian Snyder
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is, how do you set the Accelerator's font to the same size?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm... I added in some setAccelerator() and setMnemonic() method calls and I'm not having a problem with this... I'm running JDK 1.4 on the Windows 2000 platform...

-Nate
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But You shouldn't write font sizes or styles into
Your source. Instead You should store this in
a resource bundle.
See the "Java Look an Feel Guidlines" for more
details:
http://java.sun.com/products/jlf/ed2/guidelines.html
Regards
[ June 03, 2002: Message edited by: Karl Schreiber ]
 
Sudha Lakshman
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathan,
While using the setAccelerator() or setMnemonic() method calls, the font of these are not the same as that of the Menu item's font.
Is there a work around for this?
thanks and regards,
Sudha
Originally posted by Nathan Pruett:
Hmmm... I added in some setAccelerator() and setMnemonic() method calls and I'm not having a problem with this... I'm running JDK 1.4 on the Windows 2000 platform...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!