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 getSelectedIndex return?
A) The index of the item that the user replaced
B) The index of the item the user entered
C) -1
D) 0, since the item is not in the list
Correct Answer:
Verified
Q8: This type of combo box combines a
Q9: The ImageIcon class supports all the following
Q10: To add the JList object addressList to
Q11: If addressList is a JList component, what
Q12: A menu system may consist of each
Q14: To determine which item in a list
Q15: Java provides this component for creating lists:
A)
Q16: What will happen when the following code
Q17: When an item in a Jlist object
Q18: When an item in the combo box
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