next up previous
Nächste Seite: Explizite Positionierung (pfui) Aufwärts: Layout-Manager (19. 12.) Vorherige Seite: Layout-Manager (19. 12.)

GUIs und Layout-Manager

$ $Id: layout.tex,v 1.2 2003/12/18 23:41:09 joe Exp $ $

Erklärungen und Beispiele: http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/

Ein GUI (graphical user interface) enthält mehrere Komponenten (z. B. Labels, Buttons), die in einem Container (z. B. Panel) angeordnet werden:

public class Thing extends Applet {
  public void init () {
    Button b = new Button ("bar"); add (b);
    Button f = new Button ("foo"); add (f);
  }
}



Johannes Waldmann 2004-01-30