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:
Fill in those blanks