Re: How to make default font w/ metal Laf using Synth
- From: Vova Reznik <byRequest@xxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 19:32:33 GMT
Wizumwalt@xxxxxxxxx wrote:
Hey all,
I want the same interface appearance I have now but I just want to make all the font a bit different and smaller so I installed Synth and have the following XML defined ...
<synth> <style id="default"> <font name="Helvetica" size="10"/> </style> <bind style="default" type="region" key=".*"/> </synth>
The problem is, this makes the default fonts correct all over my application, but the rest of the GUI is completely blank. Is there anyway for my menus, buttons, etc... to stay as was w/ the metal LaF but *only* change the font size?
Any help much appreciated.
Check out javax.swing.UIManager
For buttons for example:
UIManager.put("Button.font", new FontUIResource(name, style, size));
.- References:
- How to make default font w/ metal Laf using Synth
- From: Wizumwalt@xxxxxxxxx
- How to make default font w/ metal Laf using Synth
- Prev by Date: Re: Place JComponent in center of JDialog. Solved
- Next by Date: Re: How to make default font w/ metal Laf using Synth
- Previous by thread: How to make default font w/ metal Laf using Synth
- Next by thread: Re: How to make default font w/ metal Laf using Synth
- Index(es):