Solved

Which of the Following Statements Creates a Horizontal Slider Component

Question 13

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 hSlider = new JSlider(0, 50, 25, JSlider.HORIZONTAL) ;
B) JSlider hSlider = new JSlider(JSlider.HORIZONTAL, 0, 50, 25) ;
C) JSlider hSlider = new JSlider(0, 50, JSlider.HORIZONTAL, 25) ;
D) JSlider hSlider = new JSlider(0, JSlider.HORIZONTAL, 50, 25) ;

Correct Answer:

verifed

Verified

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

Related Questions