-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 1.2.2
-
Component/s: client-libs
-
1.2.2
-
sparc
-
solaris_2.5.1
Name: aaC67449 Date: 01/06/99
JSlider.createStandardLabels(int increnment) hungs program, when increment<=0
It will be better to throw IllegalArgumentException in this case.
See example.
--------------- Example---------------------------
import javax.swing.*;
public class Test {
public static void main(String argv[]) {
JSlider c=new JSlider();
System.out.println("Start test");
c.createStandardLabels(-1);
System.out.println("Ok");
}
}
----------------output------------------
Start test
^C
======================================================================