import java.awt.*; import java.applet.Applet; public class Paigutus1 extends Applet{ public void init(){ setLayout(new BorderLayout()); add(new Button("Põhi"), BorderLayout.NORTH); add(new Button("Lõuna"), BorderLayout.SOUTH); add(new Button("Ida"), BorderLayout.EAST); add(new Button("Lääs"), BorderLayout.WEST); add(new Button("Keskus"),BorderLayout.CENTER); } }