A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Swing / AWT / SWT
problem with synth
Joined: Feb 18, 2010
Feb 18, 2010 06:25:51
I would like to have same font in all of my
app, I know the way is synth. I tried this code :
SynthLookAndFeel laf = new SynthLookAndFeel(); laf.load(main.class.getResourceAsStream("a.xml"), main.class); UIManager.setLookAndFeel(laf);
<?xml version="1.0" encoding="UTF-8"?> <synth> <style id="x"> <opaque value="true"/> <font name="Arial" size="12"/> </style> <bind style="x" type="region" key="*."/> </synth>
you know the font changes but all of my
and their contents and everythings disappear!
just my jmenu is visibale without any border. any idea?!
Joined: Oct 27, 2005
Feb 18, 2010 12:50:20
Moving to our Swing forum.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Don't get me started about those stupid
subject: problem with synth
Set Global Font in Swing Application
how to use a canvas class
Custom GUI look and feel
Help me with the font ... T_T
Having trouble with java.awt.Font.getFont(String nm, Font font)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014