All pastes #389408 Raw Edit

Fanook

public java v1 · immutable
·published 2007-03-10 18:53 UTC
rendered paste body
package test;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;public class Test {    public static void main (String args[]) {        Test t = new Test();                JButton b = new JButton ();        b.addActionListener (t.new ButtonHandler());    }    private void a () {}    class ButtonHandler implements ActionListener{        public void actionPerformed (ActionEvent arg0) {           a();                    }            }}