I have the following code:
class Foo
{
public Foo()
{
new ActionListener()
{
public void actionPerformed( ActionEvent e )
{
// how can I use a reference to Foo here
}
}
}
}
I can use member variables of the current Foo
instance from inside actionPerformed
. I I use this
I get the instance of ActionListener
. But how can I get a reference to the current Foo
instance itself?