import java.awt.*; import javax.swing.*; public class HalloApplet extends JApplet { public void init() { // Fenster mit ein paar Bedienungselementen ohne Funktion Container p = getContentPane(); p.setLayout(new FlowLayout()); JLabel title = new JLabel("Such was aus:"); p.add(title); String[] fächer = {"Physik", "Informatik", "Thermodynamik"}; JComboBox auswahl = new JComboBox(fächer); p.add(auswahl); JButton knopf = new JButton("Drück mich!"); p.add(knopf); } }