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

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

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

revision 1.24 by trebligd, Wed Aug 31 15:23:10 2005 UTC revision 1.25 by trebligd, Thu Sep 15 13:19:09 2005 UTC
# Line 55  import javax.swing.UIDefaults; Line 55  import javax.swing.UIDefaults;
55  import javax.swing.UIManager;  import javax.swing.UIManager;
56  import javax.swing.plaf.ButtonUI;  import javax.swing.plaf.ButtonUI;
57  import javax.swing.plaf.ComponentUI;  import javax.swing.plaf.ComponentUI;
58    import javax.swing.plaf.UIResource;
59    
60  public class BasicButtonUI extends ButtonUI  public class BasicButtonUI extends ButtonUI
61  {  {
# Line 122  public class BasicButtonUI extends Butto Line 123  public class BasicButtonUI extends Butto
123    {    {
124      UIDefaults defaults = UIManager.getLookAndFeelDefaults();      UIDefaults defaults = UIManager.getLookAndFeelDefaults();
125      String prefix = getPropertyPrefix();      String prefix = getPropertyPrefix();
126        b.setFont(defaults.getFont(prefix + "font"));
127      focusColor = defaults.getColor(prefix + "focus");      focusColor = defaults.getColor(prefix + "focus");
128      b.setForeground(defaults.getColor(prefix + "foreground"));      b.setForeground(defaults.getColor(prefix + "foreground"));
129      b.setBackground(defaults.getColor(prefix + "background"));      b.setBackground(defaults.getColor(prefix + "background"));
# Line 135  public class BasicButtonUI extends Butto Line 137  public class BasicButtonUI extends Butto
137    
138    protected void uninstallDefaults(AbstractButton b)    protected void uninstallDefaults(AbstractButton b)
139    {    {
140        if (b.getFont() instanceof UIResource)
141          b.setFont(null);
142      b.setForeground(null);      b.setForeground(null);
143      b.setBackground(null);      b.setBackground(null);
144      b.setBorder(null);      b.setBorder(null);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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