import Java.awt.*;
import j ava.awt.event.*;
import java.util.*;
class GridTest extends Frame{
GridTest(String s){ super(s);
setLayout(new GridLayout(4, 4, 5, 5));
StringTokenizer st =
new StringTokenizer("7 89/456*123-0.=+");
while(st.hasMoreTokens())
add(new Button(st.nextToken()));
setSize(200, 200);
setvisible(true);
}
public static void main(String[] args){
Frame f= new GridTestt" Менеджер GridLayout");
f.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent ev){
System.exit(0);
}
});
}
}