Forums Register Login

Font size

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
I think we cannot increase the size of the font normally in JMenu bar.
Good luck with other suggestion...
Rashid Ali
+Pie Number of slices to send: Send
Ummm... actually it's really easy to do this...



-Nate
+Pie Number of slices to send: Send
The question is, how do you set the Accelerator's font to the same size?
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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

 
I can't beleive you just said that. Now I need to calm down with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3492 times.
Similar Threads
How can I increase the size of a Font?
Grrrrrr
Hurray At Last SCJP got 76%.........................
Wow 98% : I made it with your wishes!!!
Really meaningless but...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:23:23.