When I run a JDialog from within netBeans (internal execution) it has
different font faces and sizes of what I get when I run it from command
line or within netBeans external execution. So I suppose there is a
global default font and size for the java vm... I wonder where is it?
I searched but didn't manage to find it. Please help.
Andrew Thompson - 16 Jan 2004 00:29 GMT
| When I run a JDialog from within netBeans (internal execution) it has
| different font faces and sizes of what I get when I run it from command
| line or within netBeans external execution. So I suppose there is a
| global default font and size for the java vm... I wonder where is it?
Wherever it is, you should not try
to fight it. Users who tell there system
to increase the font size do so for a
good reason.
You _are_ designing your dialogs so
that they accommodate any sized text
..aren't you?
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
hiwa - 16 Jan 2004 03:37 GMT
> When I run a JDialog from within netBeans (internal execution) it has
> different font faces and sizes of what I get when I run it from command
> line or within netBeans external execution. So I suppose there is a
> global default font and size for the java vm... I wonder where is it?
>
> I searched but didn't manage to find it. Please help.
Swing UI defaults can be get and set through UIDefaults object, which
is an Hashtable. Call UIManager.getDefaults() and serch with the key
having form 'Xxx.font'.