The same thing in Java
public class TButton extends Button { public TButton () { super("Push me!"); addActionListener(new L()); } class L implements ActionListener { public void actionPerformed(ActionEvent e) { ... // perform action } }}
Previous slide
Next slide
Back to first slide
View graphic version