FileDocCategorySizeDatePackage
ToeTestNew.javaAPI DocExample5177Mon Apr 06 18:10:22 BST 1998None

ToeTestNew

public class ToeTestNew extends Frame

Fields Summary
TextField
rows
TextField
cols
static final int
BLANK
static final int
XX
static final int
OO
Constructors Summary
public ToeTestNew()

    
    setTitle("Toe Test");
    Panel p = new Panel();
    p.setLayout(new GridLayout(2,2));
    p.add(new Label("Rows", Label.CENTER));
    p.add(rows);
    p.add(new Label("Columns", Label.CENTER));
    p.add(cols);
    add(p, BorderLayout.NORTH);
    Button b = new Button("go");
    b.addActionListener(new BL());
    add(b, BorderLayout.SOUTH);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    Frame f = new ToeTestNew();
    f.addWindowListener(
      new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          System.exit(0);
        }
      });
    f.setSize(200,100);
    f.setVisible(true);