|
|
@ -336,7 +336,7 @@ public class JFormSliderPane extends JPanel { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
showValue = (int) showValSpinner.getValue(); |
|
|
|
showValue = (int) showValSpinner.getValue(); |
|
|
|
isButtonOrIsTxt = true; |
|
|
|
isButtonOrIsTxt = true; |
|
|
|
if (e.getActionCommand().equals("less")) { |
|
|
|
if ("less".equals(e.getActionCommand())) { |
|
|
|
int newDownVal = showValue - TEN; |
|
|
|
int newDownVal = showValue - TEN; |
|
|
|
if (newDownVal >= TEN) { |
|
|
|
if (newDownVal >= TEN) { |
|
|
|
showValue = newDownVal; |
|
|
|
showValue = newDownVal; |
|
|
@ -346,7 +346,7 @@ public class JFormSliderPane extends JPanel { |
|
|
|
showValSpinner.setValue(TEN); |
|
|
|
showValSpinner.setValue(TEN); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (e.getActionCommand().equals("more")) { |
|
|
|
if ("more".equals(e.getActionCommand())) { |
|
|
|
int newUpVal = showValue + TEN; |
|
|
|
int newUpVal = showValue + TEN; |
|
|
|
if (newUpVal <= FOUR_HUNDRED) { |
|
|
|
if (newUpVal <= FOUR_HUNDRED) { |
|
|
|
showValue = newUpVal; |
|
|
|
showValue = newUpVal; |
|
|
|