JSlider(int orientation)
Creates a slider using the specified orientation with the range 0 to 100 and an initial value of 50.
JSlider slider = new JSlider(0);
Creates a slider using the specified orientation with the range 0 to 100 and an initial value of 50.
JSlider slider = new JSlider(0);
下面是一些参考
int getValue()获得滑动条的所在位置
void setMaximum( int max )设置滑动条的最大值
void setMinimum(int min)设置滑动条的最小值