A good answer might be:

slide = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 79 );
slide.setMajorTickSpacing( 10 );
slide.setMinorTickSpacing(  5 );
slide.setPaintTicks ( true);
slide.setPaintLabels( true);
slide.setSnapToTicks( true);

Vertical Slider

Here is the code responsible for the slider at right:

 
sliderV = new JSlider( SwingConstants.________,  
    ____, ____, 400);
sliderV.setMajorTickSpacing( ____ );
sliderV.setMinorTickSpacing( ____ );
sliderV.setPaintTicks ( ____ );
sliderV.setPaintLabels( ____ ); 



QUESTION 6:

Fill in those blanks