/[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.32 by rabbit78, Tue Oct 25 19:57:04 2005 UTC revision 1.33 by rabbit78, Tue Nov 15 20:32:46 2005 UTC
# Line 52  import javax.swing.JButton; Line 52  import javax.swing.JButton;
52  import javax.swing.JComponent;  import javax.swing.JComponent;
53  import javax.swing.LookAndFeel;  import javax.swing.LookAndFeel;
54  import javax.swing.SwingUtilities;  import javax.swing.SwingUtilities;
 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;
# Line 444  public class BasicButtonUI extends Butto Line 443  public class BasicButtonUI extends Butto
443        }        }
444      else      else
445        {        {
         UIDefaults defaults = UIManager.getLookAndFeelDefaults();  
446          String prefix = getPropertyPrefix();          String prefix = getPropertyPrefix();
447          g.setColor(defaults.getColor(prefix + "disabledText"));          g.setColor(UIManager.getColor(prefix + "disabledText"));
448          g.drawString(text, textRect.x, textRect.y + fm.getAscent());          g.drawString(text, textRect.x, textRect.y + fm.getAscent());
449        }        }
450    }    }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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