Answer:

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

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