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:
Verified
Q6: What is the default directory for the
Q7: Which of the following file types is
Q8: What will be the result when the
Q9: A mnemonic is
A) a single key on
Q10: What is returned by the JList class's
Q12: If null is passed as an argument
Q13: What will be the result of the
Q14: The JComboBox class is in this package.
A)
Q15: If you call the JTextField component's setEditable
Q16: When you create an instance of the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents