/[classpath]/classpath/javax/swing/plaf/basic/BasicLabelUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicLabelUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by rabbit78, Wed Aug 17 09:36:29 2005 UTC revision 1.19 by rabbit78, Wed Oct 12 12:09:59 2005 UTC
# Line 50  import java.beans.PropertyChangeListener Line 50  import java.beans.PropertyChangeListener
50  import javax.swing.Icon;  import javax.swing.Icon;
51  import javax.swing.JComponent;  import javax.swing.JComponent;
52  import javax.swing.JLabel;  import javax.swing.JLabel;
53    import javax.swing.LookAndFeel;
54  import javax.swing.SwingUtilities;  import javax.swing.SwingUtilities;
 import javax.swing.UIDefaults;  
 import javax.swing.UIManager;  
55  import javax.swing.plaf.ComponentUI;  import javax.swing.plaf.ComponentUI;
56  import javax.swing.plaf.LabelUI;  import javax.swing.plaf.LabelUI;
57    
# Line 345  public class BasicLabelUI Line 344  public class BasicLabelUI
344     */     */
345    protected void installDefaults(JLabel c)    protected void installDefaults(JLabel c)
346    {    {
347      UIDefaults defaults = UIManager.getLookAndFeelDefaults();      LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground",
348                                         "Label.font");
     c.setForeground(defaults.getColor("Label.foreground"));  
     c.setBackground(defaults.getColor("Label.background"));  
     c.setFont(defaults.getFont("Label.font"));  
349      //XXX: There are properties we don't use called disabledForeground      //XXX: There are properties we don't use called disabledForeground
350      //and disabledShadow.      //and disabledShadow.
351    }    }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26