FAQ Database Discussion Community

Why is self-referencing pointer or this out of scope in button?

I'm trying to produce a dynamic canvas using the Swing library with the State pattern. My code can compile but with red marks all over the console when my buttons are pressed. The problem: my self-referencing pointer or reserved word this is out of scope in button. I want to...