Solved

Which of the Following Statements Creates a Horizontal Slider Component

Question 52

Multiple Choice

Which of the following statements creates a horizontal slider component with a minimum value of 0, a maximum value of 50, and an initial value of 25?


A) JSlider slider = new JSlider(0, 50, 25, JSlider.HORIZONTAL) ;
B) JSlider slider = new JSlider(JSlider.HORIZONTAL, 0, 50, 25) ;
C) JSlider slider = new JSlider(JSlider.HORIZONTAL, 25, 0, 50) ;
D) JSlider slider = new JSlider(JSlider.HORIZONTAL, 50, 0, 25) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions