Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(TCOs 1, 4, and 6) Which component allows users to access a layer of GUI compone

ID: 2081277 • Letter: #

Question

(TCOs 1, 4, and 6) Which component allows users to access a layer of GUI components via a tab? (Points : 3)

A JTabs

B JTabPane

C JTabbedPane

D JTabPanel

A for(int index = 0; index < cities.length(); index++)
B for(int index = 1; index <= cities.length(); index++)
C for(int index = 0; index < cities.size(); index++)
D for(int index = 1; index < =cities.size(); index++)

A myTabs.newTab(myPanel, “Add”);
B myPanel.addToTab(myTabs, “Add”);
C myTabs.addTab(myPanel, “Add”);
D myTabs.addTab(“Add”, myPanel);

(TCOs 1, 4, and 6) Which is a proper loop to walk through all the elements of the arrayList cities? (Points : 3)

Explanation / Answer

C) JTabbedPane

A) for(int index=0;index<cities.length(); index++)

C) myTabs.addTab(myPanel,"Add");