Question: Write code that creates a JSlider component. The component should be horizontally oriented and its range should be 0 through 1000. Labels and tick marks
Write code that creates a JSlider component. The component should be horizontally oriented and its range should be 0 through 1000. Labels and tick marks should be displayed. Major tick marks should appear at every 100th number, and minor tick marks should appear at every 25th number. The initial value of the slider should be set at 500.
Step by Step Solution
3.36 Rating (165 Votes )
There are 3 Steps involved in it
import javaxswing import javaawt public class PlaySlider ext... View full answer
Get step-by-step solutions from verified subject matter experts
