111112113114115116117118119120121
setLayout(new BorderLayout()); addKeyListener(this); Panel p = new Panel(new GridLayout(6, 2, 10, 10)); p.addKeyListener(this); p.setBackground(SystemColor.control); p.add(createLabel("Type:")); Choice types = new Choice();
174175176177178179180181182183184
mError = new Label(""); Panel pMessage = createBorderPanel(mError); pMessage.addKeyListener(this); add("South", pMessage); add("North", createLabel("")); add("Center", p); doLayout(); pack();