Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Font size

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ummm... actually it's really easy to do this...



-Nate
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
reply
    Bookmark Topic Watch Topic
  • New Topic