Fixed outputing crash advice twice
This commit is contained in:
@@ -267,7 +267,7 @@ public class BEButtonUI extends BasicButtonUI implements Skin {
|
||||
state = State.ROLLOVER;
|
||||
else if (b instanceof JButton
|
||||
&& ((JButton) b).isDefaultButton())
|
||||
state = State.DEFAULTED;
|
||||
state = State.DEFAULT;
|
||||
break;
|
||||
default:
|
||||
state = State.NORMAL;
|
||||
|
||||
@@ -98,7 +98,7 @@ public class AnimationController implements ActionListener, PropertyChangeListen
|
||||
State oldState = controller.getState(c, part);
|
||||
if (oldState != newState) {
|
||||
controller.putState(c, part, newState);
|
||||
if (newState == State.DEFAULTED)
|
||||
if (newState == State.DEFAULT)
|
||||
// it seems for DEFAULTED button state Vista does animation from
|
||||
// HOT
|
||||
oldState = State.ROLLOVER;
|
||||
@@ -182,7 +182,7 @@ public class AnimationController implements ActionListener, PropertyChangeListen
|
||||
State endState,
|
||||
long millis) {
|
||||
boolean isForwardAndReverse = false;
|
||||
if (endState == State.DEFAULTED)
|
||||
if (endState == State.DEFAULT)
|
||||
isForwardAndReverse = true;
|
||||
Map<Part, AnimationState> map = animationStateMap.get(component);
|
||||
if (millis <= 0) {
|
||||
|
||||
@@ -231,7 +231,7 @@ public class TMSchema {
|
||||
BULLETNORMAL,
|
||||
BULLETDISABLED,
|
||||
CLOSED,
|
||||
DEFAULTED,
|
||||
DEFAULT,
|
||||
DISABLED,
|
||||
DISABLEDHOT,
|
||||
DISABLEDPUSHED,
|
||||
@@ -304,7 +304,7 @@ public class TMSchema {
|
||||
});
|
||||
|
||||
stateMap.put(Part.BP_PUSHBUTTON,
|
||||
new State[] { NORMAL, ROLLOVER, PRESSED, DISABLED, DEFAULTED });
|
||||
new State[] { NORMAL, ROLLOVER, PRESSED, DISABLED, DEFAULT });
|
||||
|
||||
stateMap.put(Part.BP_RADIOBUTTON,
|
||||
new State[] {
|
||||
|
||||
Reference in New Issue
Block a user