File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
change metal L&F font size
Bobby Anderson
Ranch Hand
Joined: Oct 28, 2008
Posts: 114
posted
Dec 18, 2008 14:11:00
0
I am using the default swing look and feel of metal. But I am running into a problem with a difference in font size between windows and linux. So I still want to use metal but I want to adjust the font size. Is there an easy way to do this?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
Dec 18, 2008 19:22:00
0
is the font difference very noticeable?
could it be the default bold works on windows, not on linux?
to turn it off
UIManager.put("swing.boldMetal", Boolean.FALSE);
if still a difference, iterate the
UIManager
looking for fonts, and setting your own font (as a
FontUIResource
)
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: change metal L&F font size
Similar Threads
cycles in dependency structure
Help with some code?
Having trouble with java.awt.Font.getFont(String nm, Font font)
Change font size of button if button size changes
MenuItem font setting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter