File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes change metal L&F font size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "change metal L&F font size" Watch "change metal L&F font size" New topic
Author

change metal L&F font size

Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
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
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