import java.awt.*; import java.applet.Applet; public class Paigutus8 extends Applet{ public Paigutus8(){ setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0)); add(new Button("Nupp 1")); add(new Button("Nupp 2")); add(new Button("Nupp 3")); } public static void main(String argumendid[]){ Frame f=new Frame("Paigutus"); f.add(new Paigutus8()); f.setSize(400, 200); f.setVisible(true); } }