(TCOs 1, 4, and 6) A JList can be populated from
(TCOs 1, 4, and 6) Which statement adds the JList component myList to the JFrame using a scroll pane?
| add myList.setScrollable(true); |
| add(new JScrollPane(myList)); |
(TCOs 1, 4, and 6) Class _____ represents a dynamically resizable array-like data structure.
(TCOs 1, 4, and 6) Which method will remove all elements in an ArrayList employees?
(TCOs 1, 4, and 6) When an item in a JList is selected by the user, a _____ occurs.
(TCOs 1, 4, and 6) Which component allows users to access a layer of GUI components via a tab?
(TCOs 1, 4, and 6) A tool tip can be specified for a tab using the _____ method.
(TCOs 1, 4, and 6) Suppose ArrayList cities contain the two strings {Chicago, Miami}. Which of the following methods will cause the list to become {Chicago, Houston,Miami}?
(TCOs 1, 4, and 6) Which of the following is false regarding overriding of the toString method?
| toString method must have no parameters. |
| toString method must have parameters. |
| The string representation of the object is determined by the programmer. |
| toString method must return a String. |
(TCOs 1, 4, and 6) If your GUI has multiple tabs and you want to know the index of the tab currently selected, use the method