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
Q5: To force the JFrame that encloses a
Q11: Which of the following is not a
Q13: A menu system may consist of each
Q16: If addressList is a JList component,what will
Q17: When an item in a Jlist object
Q17: What will happen when the following statement
Q18: When an item in the combo box
Q19: What will be the results of executing
Q20: The default selection mode for a JList
Q27: The Dimension class is part of the:
A)
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