1.

An Applet has its Layout Manager set to the default of FlowLayout. What code would bethe correct to change to another Layout Manager?

A. setLayoutManager(new GridLayout());
B. setLayout(new GridLayout(2,2));
C. setGridLayout(2,2);
D. setBorderLayout();
Answer» C. setGridLayout(2,2);


Discussion

No Comment Found