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.
Vova Reznik - 29 Jun 2005 20:32 GMT
> Hey all,
>
[quoted text clipped - 15 lines]
>
> Any help much appreciated.
Check out javax.swing.UIManager
For buttons for example:
UIManager.put("Button.font", new FontUIResource(name, style, size));
Tjerk Wolterink - 29 Jun 2005 21:37 GMT
> Hey all,
>
[quoted text clipped - 8 lines]
> <bind style="default" type="region" key=".*"/>
> </synth>
note: the synth technology does not have many documentation yet,
so rather use the UIManager for succesfull results.