/[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.12.2.9 by gnu_andrew, Wed Nov 2 00:43:52 2005 UTC revision 1.12.2.10 by gnu_andrew, Sun Nov 27 21:00:38 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 161  public class BasicButtonUI extends Butto Line 160  public class BasicButtonUI extends Butto
160      b.setIconTextGap(UIManager.getInt(prefix + "textIconGap"));      b.setIconTextGap(UIManager.getInt(prefix + "textIconGap"));
161      b.setInputMap(JComponent.WHEN_FOCUSED,      b.setInputMap(JComponent.WHEN_FOCUSED,
162                    (InputMap) UIManager.get(prefix + "focusInputMap"));                    (InputMap) UIManager.get(prefix + "focusInputMap"));
     b.setRolloverEnabled(UIManager.getBoolean(prefix + "rollover"));  
163    }    }
164    
165    /**    /**
# Line 444  public class BasicButtonUI extends Butto Line 442  public class BasicButtonUI extends Butto
442        }        }
443      else      else
444        {        {
         UIDefaults defaults = UIManager.getLookAndFeelDefaults();  
445          String prefix = getPropertyPrefix();          String prefix = getPropertyPrefix();
446          g.setColor(defaults.getColor(prefix + "disabledText"));          g.setColor(UIManager.getColor(prefix + "disabledText"));
447          g.drawString(text, textRect.x, textRect.y + fm.getAscent());          g.drawString(text, textRect.x, textRect.y + fm.getAscent());
448        }        }
449    }    }

Legend:
Removed from v.1.12.2.9  
changed lines
  Added in v.1.12.2.10

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