Thread: [Squirrel-sql-commits] sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf MetalLookAndFe
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Gerd W. <ger...@us...> - 2005-05-27 22:51:35
|
Update of /cvsroot/squirrel-sql/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17497/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf Modified Files: MetalLookAndFeelController.java Log Message: For the SwingSet LAFs plain instead of bold font is used with JDK 1.5 Index: MetalLookAndFeelController.java =================================================================== RCS file: /cvsroot/squirrel-sql/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/MetalLookAndFeelController.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MetalLookAndFeelController.java 26 May 2005 01:09:54 -0000 1.2 --- MetalLookAndFeelController.java 27 May 2005 22:51:27 -0000 1.3 *************** *** 136,141 **** void installCurrentTheme(LookAndFeel laf, MetalTheme theme) { UIManager.put("swing.boldMetal", Boolean.FALSE); ! MetalLookAndFeel.setCurrentTheme(theme); } --- 136,145 ---- void installCurrentTheme(LookAndFeel laf, MetalTheme theme) { + // This works only on JDK 1.5 + // With JDK 1.4.x fonts will be bold for all SwingSet themes. + // See also SwingSet2 demos in JDK 1.4 and JDK 1.5 UIManager.put("swing.boldMetal", Boolean.FALSE); ! ! MetalLookAndFeel.setCurrentTheme(theme); } |