Accessing container fields
问题 I've got a very silly question to ask. I'm using NetBeans to built a small app and I'm having the following problem; My main class is called mainApp and is extending a JFrame which in turn contains a JPanel called drawingBoard which I also extend for various (and off-topic) reasons.. The core problem is that at some point I need to access one of the fields of the mainApp but due to the way NetBeans instantiates my main class..(as anonymous class) I can't get a reference to the container(that