import java.awt.*; public class Paneel1 extends Panel{ Button nupp1, nupp2, nupp3, nupp21; Panel p1, p2; Tah04 tahvel; Paneel1(){ this.resize(300, 200); this.setBackground(Color.white); p1=new Panel(); p1.setLayout(new GridLayout(3, 1)); p1.add(nupp1=new Button("Esimene")); p1.add(nupp2=new Button("Teine")); p1.add(nupp3=new Button("Kolmas")); p2=new Panel(); p2.setLayout(new BorderLayout()); p2.resize(200, 100); tahvel=new Tah04(200, 100); p2.add("North", tahvel); p2.add("South", nupp21=new Button("Pika nimega nupp")); this.setLayout(new FlowLayout()); this.add("Left", p1); this.add("Right", p2); }}