import java.awt.*; import java.io.*; public class paigutus extends Panel { Button nupp1=new Button("nupp1"); Button nupp2=new Button("nupp2"); Button nupp3=new Button("nupp3"); Scrollbar kerimisriba=new Scrollbar(Scrollbar.HORIZONTAL, 20, 5, 1, 100); Checkbox CB=new Checkbox(); TextArea TA1=new TextArea(10,10); public paigutus() { setLayout(new BorderLayout()); Panel ylemine=new Panel(new GridLayout(1,3)); ylemine.add(nupp1); ylemine.add(nupp2); ylemine.add(nupp3); Panel alumine=new Panel(new BorderLayout()); Panel allsees=new Panel(new GridLayout(1,2)); CheckboxGroup CBg=new CheckboxGroup(); allsees.add(new Checkbox("Esimene", CBg, false)); allsees.add(new Checkbox("Teine", CBg, true)); allsees.add(new Checkbox("Kolmas", CBg, false)); Choice valik=new Choice(); valik.add("Sinine"); valik.add("Punane"); valik.add("Kollane"); allsees.add(CB); alumine.add(valik, BorderLayout.WEST); alumine.add(kerimisriba); alumine.add(allsees, BorderLayout.SOUTH); add(ylemine, BorderLayout.NORTH); add(TA1, BorderLayout.CENTER); add(alumine, BorderLayout.SOUTH); } public static void main(String arg[]) { Frame f=new Frame("paigutus"); f.add(new paigutus()); f.setSize(640,480); f.setVisible(true); f.addWindowListener(new Raamikuular()); } }