If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedItem return?
A) The value that the user replaced
B) The index of the item the user entered
C) The value that appears in the text field, even if it is not in the combo box's list
D) Nothing, since the item is not in the list
Correct Answer:
Verified
Q21: What will the following code do when
Q22: The JComboBox class is in the:
A) javax.swing
Q23: If the letter chosen as the mnemonic
Q24: What will display when the following code
Q25: When you create an instance of the
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
Q30: If nameList is a JList component, use
Q31: The getSelectedIndex method returns:
A) the index of
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