To add the JList object addressList to a scroll pane named scrollPane, use the following:

A) JScrollPane scrollPane = new JScrollPane(addressList);
B) scrollPane.add(addressList);
C) addressList.add(scrollPane);
D) addressList.addScrollPane(scrollPane);


A) JScrollPane scrollPane = new JScrollPane(addressList);

Computer Science & Information Technology

You might also like to view...

The Apache OpenOffice database application is called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Using the ________ button is an efficient way to locate a record in the table

A) Locate B) Find Record C) Find D) Get Record

Computer Science & Information Technology

When writing a program, a(n) ____ structure provides the capability to make a choice between different instructions, depending on the result of some condition.

A. sequence B. selection C. iteration D. invocation

Computer Science & Information Technology

?You have been contacted to suggest a solution for creating a digital mockup of a machine to be used at a factory. The users would like to be able to view and interact with the layout of the controls of the machine, even before the actual machine is built. A(n) _______________ system will be an appropriate choice for this kind of problem. 

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology