|
|
@ -44,6 +44,7 @@ public class DarkToggleButtonListener extends DarkButtonListener<DarkToggleButto |
|
|
|
button = b; |
|
|
|
button = b; |
|
|
|
animator = createAnimator(); |
|
|
|
animator = createAnimator(); |
|
|
|
animator.setEnabled(UIManager.getBoolean("ToggleButton.animated")); |
|
|
|
animator.setEnabled(UIManager.getBoolean("ToggleButton.animated")); |
|
|
|
|
|
|
|
animator.state = selected ? 1 : 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected SliderAnimator createAnimator() { |
|
|
|
protected SliderAnimator createAnimator() { |
|
|
@ -119,6 +120,7 @@ public class DarkToggleButtonListener extends DarkButtonListener<DarkToggleButto |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void paintCycleEnd() { |
|
|
|
protected void paintCycleEnd() { |
|
|
|
|
|
|
|
System.out.println("here"); |
|
|
|
this.state = endValue; |
|
|
|
this.state = endValue; |
|
|
|
repaint(); |
|
|
|
repaint(); |
|
|
|
animationBounds = null; |
|
|
|
animationBounds = null; |
|
|
|