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
Q42: The JMenuBar method is a(n):
A) JFrame method
B)
Q43: In the following code the setPreferredSize method
Q44: When a JList component is added to
Q45: A menu system may consist of each
Q46: What will be the results of executing
Q48: Which of the following is NOT a
Q49: A label's preferred size is determined only
Q50: A menu within a menu is called
Q51: If the argument passed to the showOpenDialog
Q52: By default the scroll bars are always
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