If I do the following,
final class FooButton extends JButton{ FooButton(){ super(\"Foo\"); addActionListener(new ActionListener(){
Yes. this of the enclosing class is implicitly in an non-static anonymous class.
this