If I do the following,
final class FooButton extends JButton{ FooButton(){ super(\"Foo\"); addActionListener(new ActionListener(){
Yes, the anonymous inner class of ActionListener has a reference to this.
ActionListener
this