Multiple Choice
If nameList is a JList component, use the following statement to display 4 rows in nameList.
A) nameList.setRowCount(4) ;
B) nameList.setDisplayRowCount(4) ;
C) nameList.setShowRowCount(4) ;
D) nameList.setVisibleRowCount(4) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
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
Q7: What will happen when the following code
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
Q13: When using a slider, by default, tick