If panel references a JPanel object, which of the following statements adds the GridLayout to it?

A) panel.setLayout(new (GridLayout(2,3));
B) panel.addLayout(new (GridLayout(2,3));
C) panel.GridLayout(2,3);
D) panel.attachLayout(GridLayout(2,3));

A) panel.setLayout(new (GridLayout(2,3));

Computer Science & Information Technology

You might also like to view...

When you press the Enter key in Excel, which of the following does not happen?

A) The cell goes into edit mode. B) The active cell moves down one row. C) The data in the cell is confirmed. D) The active cell moves over one column.

Computer Science & Information Technology

When companies use a _____, they already know the specific products or service they want and need to obtain price estimates or bids from vendors.

A. request for quotation (RFQ) B. net present value (NPV) C. request for proposal (RFP) D. return on investment (ROI)

Computer Science & Information Technology