Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (TCOs 1, 4, and 6) _____ is used to display a series of items from which the user may select one or more items.

1. (TCOs 1, 4, and 6) _____ is used to display a series of items from which the user may select one or more items. (Points : 3)
JLabel JList JTextArea JArray

Question 2.2. (TCOs 1, 4, and 6) To allow for any size list to be displayed in a JList, you should (Points : 3)
create the list in a JScrollPane. use the method isScrollable with the value of true. make sure to create the JList as big as needed on the GUI. It is not possible because JList is a fixed size.

Question 3.3. (TCOs 1, 4, and 6) Which of the following is false? (Points : 3)
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.4. (TCOs 1, 4, and 6) Which method will remove all elements in an ArrayList employees? (Points : 3)
employees.delete() employees.clear() employees.empty() employees.remove()

Question 5.5. (TCOs 1, 4, and 6) The number of items visible in a JList can be set using the _____ method. (Points : 3)
setMaxRows setVisibleRowCount setRowCount setRowsVisible

Question 6.6. (TCOs 1, 4, and 6) Which component allows users to access a layer of GUI components via a tab? (Points : 3)
JTabs JTabPane JTabbedPane JTabPanel

Question 7.7. (TCOs 1, 4, and 6) An icon can be specified for a tab using the _____ method. (Points : 3)
addTab setIcon setImage tabIcon

Question 8.8. (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 {Houston,Chicago,Miami}? (Points : 3)
cities.add(Houston) cities.add(0, Houston) cities.add(1, Houston) cities.add(2, Houston)

Question 9.9. (TCOs 1, 4, and 6) In order to print the data in an object, the class should override the _____ method. (Points : 3)
String toString StringValue Value

Question 10.10. (TCOs 1, 4, and 6) Assume you have created a JTabbedPane object called myTabs. You also have a JPanel object called myPanel. Which statement adds this panel to the tabbed pane with a title of Add? (Points : 3)
myTabs.newTab(myPanel, Add); myPanel.addToTab(myTabs, Add); myTabs.addTab(myPanel, Add); myTabs.addTab(Add, myPanel);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago