My class extends Frame and the important constructor lines are below (I've left out the TextArea constructors & the panel.add's). I've attached a sketch of what I would like it to look like.
Expand|Select|Wrap|Line Numbers
- Panel pnlCheckerboard = new Panel();
- TextArea txtSquare[] = new TextArea[16];
- //
- Panel pnlInput = new Panel();
- TextField txtStart = new TextField(8);
- TextField txtStop = new TextField(8);
- TextField txtStep = new TextField(8);
- Label lblStart = new Label("Start");
- Label lblStop = new Label("Stop");
- Label lblStep = new Label("Skip");
- //
- Panel pnlButtons = new Panel();
- Button btnGo = new Button("Go");
- Button btnClear = new Button("Clear");
- //
- this.setLayout(new BorderLayout(10,10));
- pnlCheckerboard.setLayout(new GridLayout(4,4,10,10));
- pnlInput.setLayout(new GridLayout(2,3,10,10));
- pnlButtons.setLayout(new FlowLayout(FlowLayout.CENTER,50,1));
- // Bunches of add's left out
- this.add(pnlCheckerboard, NORTH);
- this.add(pnlInput, CENTER);
- this.add(pnlButtons, SOUTH);