import java.applet.Applet; import java.awt.*; public class Paneelpaigutus extends Applet{ Button nupp1=new Button("Esimene"); Button nupp2=new Button("Teine"); public Paneelpaigutus(){ setLayout(new BorderLayout()); Panel p=new Panel(new GridLayout(1, 2)); p.add(nupp1); p.add(nupp2); add(p, BorderLayout.NORTH); } public static void main(String[] argumendid){ Frame f=new Frame(); f.add(new Paneelpaigutus()); f.setSize(200, 200); f.setVisible(true); } }