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:

Verified
Correct Answer:
Verified
Q12: When creating images, the argument passed to
Q30: When an item in a Jlist object
Q35: When you write a change listener class
Q40: What will be the results of executing
Q41: The ImageIcon class constructor accepts<br>A) an integer
Q43: A menu system may consist of each
Q44: You can create a label with an
Q45: What will display when the following code
Q46: Which of the following is not a
Q50: By default the scroll bars are always