修正hibernateconsole的中文问题,根源在于jgoogies的l&f不支持中文
-修改类net.sf.hibernate.console.Start
-增加方法:
public static void setUIFont (javax.swing.plaf.FontUIResource f){
java.util.Enumeration keys = UIManager.getDefaults().keys();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
Object value = UIManager.get (key);
if (value instanceof javax.swing.plaf.FontUIResource)
UIManager.put (key, f);
}
}
修改方法:setupSwing,增加对setUIFont的调用
setUIFont(new javax.swing.plaf.FontUIResource("宋体",Font.PLAIN,12));
-修改类net.sf.hibernate.console.Start
-增加方法:
public static void setUIFont (javax.swing.plaf.FontUIResource f){
java.util.Enumeration keys = UIManager.getDefaults().keys();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
Object value = UIManager.get (key);
if (value instanceof javax.swing.plaf.FontUIResource)
UIManager.put (key, f);
}
}
修改方法:setupSwing,增加对setUIFont的调用
setUIFont(new javax.swing.plaf.FontUIResource("宋体",Font.PLAIN,12));