Multiple Choice
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) ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q34: The following statement adds the FlowLayout manager
Q35: This layout manager arranges components in five
Q36: You must use the statement import java.swing.*;
Q37: To include Swing and AWT components in
Q38: _ is a library of classes that
Q40: This is commonly used to hold and
Q41: Event listeners must:<br>A) implement an interface<br>B) be
Q42: JFC stands for:<br>A) Java Fundamental Classes<br>B) Java
Q43: The FlowLayout manager does not allow the
Q44: Which of the following is NOT a