slide = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 79 ); slide.setMajorTickSpacing( 10 ); slide.setMinorTickSpacing( 5 ); slide.setPaintTicks ( true); slide.setPaintLabels( true); slide.setSnapToTicks( true);
Here is the code responsible for the slider at right:
sliderV = new JSlider( SwingConstants.________, ____, ____, 400); sliderV.setMajorTickSpacing( ____ ); sliderV.setMinorTickSpacing( ____ ); sliderV.setPaintTicks ( ____ ); sliderV.setPaintLabels( ____ );