how to change logical font mapping to other physical font in program?

Hi..

In default,the logical font Dialog is be mapping to Arial in windows.

Now ,i want to change the logical font Dialog's mapping to another physical font. i know that i can change the font.properties file to change the mapping.But now i want to change the mapping in program.How can i do it?

thanks

Message was edited by:

zerotemp0709

Message was edited by:

zerotemp0709

[424 byte] By [zerotemp0709a] at [2007-10-3 8:18:37]
# 1
This page might help, or might not: http://homepage1.nifty.com/algafield/UIDF.html
hiwaa at 2007-7-15 3:24:01 > top of Java-index,Desktop,Core GUI APIs...
# 2

thanks a lot for your reply

the method what be writed in that page can change the default font of components.

but in my project now ,many people's programs were writed as blow

JTextField custName = new JTextFeild();

custName.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 15));

The number of programs is very larger,so i want to change the logical font "Dialog"'s mapping to another physical font(ex:Times New Roman)

zerotemp0709a at 2007-7-15 3:24:01 > top of Java-index,Desktop,Core GUI APIs...
# 3
You could use Enumeration for UIManager but customizing font.properties is much simpler.
hiwaa at 2007-7-15 3:24:01 > top of Java-index,Desktop,Core GUI APIs...
# 4
if user installs the environment of jre ,Can i only change the server's font.properties to change the mapping?How do i can change the mapping by use UIManager?I only know i can change components's font by use UIManager but not the mapping.
zerotemp0709a at 2007-7-15 3:24:01 > top of Java-index,Desktop,Core GUI APIs...