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
Q25: When you create an instance of the
Q26: If a user enters a value in
Q27: The Dimension class is part of the:
A)
Q28: A tool tip is:
A) a guide provided
Q29: This is a specialized dialog box that
Q31: The getSelectedIndex method returns:
A) the index of
Q32: Images may be displayed in labels and:
A)
Q33: The ImageIcon class constructor accepts:
A) an integer
Q34: Which of the following assigns ALT+C as
Q35: A _ object specifies a component's width
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