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
Q23: The ImageIcon class constructor accepts
A) an integer
Q24: Which of the following is not a
Q25: When you create an instance of the
Q30: If nameList is a JList component, use
Q34: Which of the following assigns ALT+C as
Q39: What will display when the following code
Q46: What will be the results of executing
Q51: If the argument passed to the showOpenDialog
Q52: By default the scroll bars are always
Q54: When creating images, the argument passed to
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