Multiple Choice
If panel references a JPanel object, which of the following statements adds the GridLayout to it?
A) panel.GridLayout(2,3) ;
B) panel.addLayout(new GridLayout(2,3) ) ;
C) panel.attachLayout(GridLayout(2,3) ) ;
D) panel.setLayout(new GridLayout(2,3) ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: To end an application, you pass this
Q3: This method of the JOptionPane class is
Q4: A(n) _ is an action that takes
Q5: In GUI terminology, a container that can
Q6: A modal dialog box<br>A) suspends execution of
Q8: When using the BorderLayout manager, how many
Q9: The signature of the actionPerformed method in
Q10: This is a basic window that has
Q11: What will be displayed when the following
Q12: Because the System.out.println method sends its output