import java.awt.*; import java.applet.*; public class mond1 extends Applet { static Button bs=new Button("Start"); //Button-Deklaration static Button bb=new Button("Anschalten"); static Button br=new Button("Abschalten"); static TextField th=new TextField("10000"); //Deklaration von Texteingabefeldern static TextField tv=new TextField("1000"); static TextField tt=new TextField("1000"); static Label lm=new Label("Zustand normal"); //Deklaration von Textanzeige public void init() { Panel po=new Panel(); //Deklaration der Panel pu,po Panel pu=new Panel(); setSize(1024,300); //Größe Anzeigefenster setLayout(new BorderLayout()); //Layout für Anzeigefenster po.setLayout(new GridLayout(0,7)); //po-Layout - 7 Spalten pu.setLayout(new GridLayout(0,3)); //pu-Layout - 3 Spalten po.add(th);po.add(new Label(" Höhe")); //Einfügen von Elementen auf den Panels po.add(tv);po.add(new Label(" Geschwindigkeit")); po.add(tt);po.add(new Label(" Treibstoff")); po.add(bs); pu.add(bb);pu.add(lm);pu.add(br); add("North",po);add("South",pu); //Einfügen der Panels im Anzeigefenster } }