Die ActionListener-Schnittstelle

class Counter { ...
    class AL implements ActionListener {
        void ActionPerformed (ActionEvent e) { ... }
    }
    Button b = new Button ("but");
    public void init () { ...
        b.addActionListener (new AL ());
    }
}



Johannes Waldmann 2005-06-21