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
Q47: Both AWT classes and Swing classes ultimately
Q48: The getSelectedIndex method returns:<br>A) the index of
Q49: Images may be displayed in labels and:<br>A)
Q50: By default the scroll bars are always
Q51: To add the JList object addressList to
Q53: If addressList exists and has values stored
Q54: If the combo box addressBox contains a
Q55: When an item in the combo box
Q56: A menu within a menu is called
Q57: A label's preferred size is determined only