Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2005

Tip: Looking for answers? Try searching our database.

How to make default font w/ metal Laf using Synth

Thread view: 
Wizumwalt@gmail.com - 29 Jun 2005 20:08 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.