|
|
@ -227,9 +227,9 @@ public class DarkButtonUI extends BasicButtonUI implements PropertyChangeListene |
|
|
|
|
|
|
|
|
|
|
|
protected Color getBackgroundColor(final JComponent c) { |
|
|
|
protected Color getBackgroundColor(final JComponent c) { |
|
|
|
boolean defaultButton = isDefaultButton(c); |
|
|
|
boolean defaultButton = isDefaultButton(c); |
|
|
|
boolean rollOver = (c instanceof JButton && (((JButton) c).isRolloverEnabled() |
|
|
|
boolean rollOver = c instanceof JButton && (((JButton) c).isRolloverEnabled() |
|
|
|
&& (((JButton) c).getModel().isRollover()))); |
|
|
|
&& (((JButton) c).getModel().isRollover())); |
|
|
|
boolean clicked = c instanceof JButton && ((JButton) c).getModel().isArmed(); |
|
|
|
boolean clicked = c instanceof JButton && (((JButton) c).getModel().isArmed()); |
|
|
|
if (c.isEnabled()) { |
|
|
|
if (c.isEnabled()) { |
|
|
|
if (defaultButton) { |
|
|
|
if (defaultButton) { |
|
|
|
if (clicked) { |
|
|
|
if (clicked) { |
|
|
|