next up previous
Nächste Seite: Ereignis-Behandlung in Applets (II) Aufwärts: Applet-Programmierung Vorherige Seite: Applets mit BlueJ programmieren

Ereignis-Behandlung in Applets

$ $Id: event.tex,v 1.1 2003/12/04 12:39:55 joe Exp $ $

public class Counter {   
  int status = 0;
  Label lab = new Label ("");
  void update () {
    lab.setText (Integer.toString (status));
  }  
  ...
  public void init () {
    add (lab);
    ...
  }
}



Johannes Waldmann 2004-01-30