I stand corrected... Thank-you
Code to prove your point:
import java.awt.*;
public class test2 extends Frame{
public static void main(
String argv[]){
test2 cl = new test2();
}
test2(){
Panel p = new Panel();
p.setBackground(Color.pink);
p.add(new Button("One"));
p.add(new Button("Two"));
p.add(new Button("Three"));
p.add(new Button("Four"));
p.add(new Button("Five"));
p.add(new Button("Six"));
add("South",p); add(p);
add(new Button("One"));
add(new Button("Two"));
add(new Button("Three"));
add(new Button("Four"));
add(new Button("Five"));
add(new Button("Six"));
// setLayout(new FlowLayout());
// setLayout(new BorderLayout());
// setLayout(new GridLayout());
setLayout(new GridLayout(2,2));
setSize(300,300);
setVisible(true);
}
}
Time to go home, enjoy the rest of the day
Monty