question 1 is used to display a series of items from which the user may select one o 5153922
question 1
_____ is used to display a series of items from which the user may select one or more items.
JLabel |
JList |
JTextArea |
JArray |
Question 2
Which statement adds the JList component myList to the JFrame using a scroll pane?
add myList.setScrollable(true); |
add(JScrollPane(myList); |
add(new JScrollPane(myList)); |
add JScrollPane.myList; |
Question 3
Which of the following is false?
The size of an ArrayList can be determined by its length instance variable. |
The size of an ArrayList can be determined by its size method. |
You can add a new item to the end of an ArrayList with its add method. |
You can get an item from a specified index in an ArrayList with its get method. |
Question 4
Which method will return the first element in an ArrayList employees?
employees.first() |
employees.get(1) |
employees.get(0) |
employees.get() |