FileDocCategorySizeDatePackage
GridLayDemo.javaAPI DocExample687Sun Dec 27 15:20:42 GMT 1998None

GridLayDemo

public class GridLayDemo extends Applet implements ActionListener
Simple GridLayout demo program.

Fields Summary
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent ev)

		showStatus("You pressed " + ev.getActionCommand());
	
public voidinit()

		Button b;
		setLayout(new GridLayout(2,3));
		add(b=new Button("B1"));
		b.addActionListener(this);
		add(b=new Button("B2"));
		b.addActionListener(this);
		add(b=new Button("B3"));
		b.addActionListener(this);
		add(b=new Button("C1"));
		b.addActionListener(this);
		add(b=new Button("C2"));
		b.addActionListener(this);
		add(b=new Button("C3"));
		b.addActionListener(this);