Re: How to make default font w/ metal Laf using Synth



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));
.