Programming - Swings
You Are Here :: Home > JAVA > Swings - General Questions
49. |
________________ is used to create a color chooser pane with the specified color initially.
|
A. |
JColorChooser(Color intialColor) |
B.
|
JColorChooser( intialColor) |
C.
|
JColorChooser(Color )
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
JColorChooser(Color intialColor) is used to create a color chooser pane with the specified color initially. |
|
50. |
________________(Component c,String title,Color initialColor) is used to show the color chooser dialog box.
|
A. |
Chooser() |
B.
|
Chooser showDialog |
C.
|
public static Color showDialog
|
D.
|
showDialog
|
|
Answer: Option C
Explanation:
public static Color showDialog(Component c,String title,Color initialColor) is used to show the color chooser dialog box. |
|
51. |
The __________is used to create a horizontal progress bar but no string text.
|
A. |
JProgressBar() |
B.
|
Fslider |
C.
|
Jslider()
|
D.
|
drawImage()
|
|
Answer: Option A
Explanation:
The JProgressBar() is used to create a horizontal progress bar but no string text. |
|
52. |
The ____________ class is used to display the progress of the task.
|
A. |
Jframe |
B.
|
Fframe |
C.
|
Jslider()
|
D.
|
JProgressBar
|
|
Answer: Option D
Explanation:
The JProgressBar class is used to display the progress of the task. |
|
53. |
The Jslider is used to create the ________.By using Jslider a user can select a value from specific range.
|
A. |
Button |
B.
|
Frame |
C.
|
slider
|
D.
|
none
|
|
Answer: Option C
Explanation:
The Jslider is used to create the slider.By using Jslider a user can select a value from specific range. |
|
54. |
________ creates a slider with the initial value of 50 and range of 0 to 100.
|
A. |
Fframe |
B.
|
Jframe |
C.
|
Fslider
|
D.
|
Jslider()
|
|
Answer: Option D
Explanation:
Jslider() creates a slider with the initial value of 50 and range of 0 to 100. |
|
« prev
next »