Multiple Choice
What will happen when the following code is executed?
JPanel panel = new JPanel() ;
Color selectedColor;
SelectedColor = JColorChooser.showDialog(null,
"Select color", Color.BLUE) ;
A) A Color Chooser will be displayed in the upper, left-hand corner of the screen with "Select color" in its Title Bar and blue pre-selected.
B) A Color Chooser will be displayed in the center of the screen with "Select color" in its Title Bar and blue pre-selected.
C) A Color Chooser will be displayed in the center of the screen with "Select color" as the OK button's text and blue pre-selected.
D) A Color Chooser will be displayed in the lower, right-hand corner of the screen with "Select color" in its Title Bar and blue pre-selected.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Which of the following assigns ALT+C as
Q3: A mnemonic is:<br>A) A single key on
Q4: To determine which item in a list
Q5: In the following code the setPreferredSize method
Q6: This type of combo box combines a
Q8: If nameList is a JList component, use
Q9: The default directory for the JFileChooser constructor
Q10: What will happen when the following statement
Q11: If the argument passed to the showOpenDialog
Q12: When creating images, the argument passed to