|
From: Harry E. <har...@us...> - 2006-09-18 11:09:15
|
Update of /cvsroot/synclast/client/src/com/synclast/ui In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10581/src/com/synclast/ui Modified Files: Label.java Log Message: Changed the way that Label's constructor worked. Before, Label was ALWAYS using the default Font if none was specified. Now, if none is specified iin the constructor, it will at least try to use the value specified in the style sheet, defaulting to the default font in cases where nothing is known. Index: Label.java =================================================================== RCS file: /cvsroot/synclast/client/src/com/synclast/ui/Label.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Label.java 18 Sep 2006 07:59:05 -0000 1.16 --- Label.java 18 Sep 2006 11:09:10 -0000 1.17 *************** *** 55,59 **** */ public Label(String text) { ! this(text, Font.getDefaultFont()); } --- 55,59 ---- */ public Label(String text) { ! this.text = text; } *************** *** 64,70 **** */ public Label(String text, Font font) { ! this.text = text; set(FONT, Style.getFontValue(font)); - //changeFont(font); } --- 64,69 ---- */ public Label(String text, Font font) { ! this(text); set(FONT, Style.getFontValue(font)); } |