how to refer back to an applet from a panel that has been added to it
posted 10 years ago
I have a panel which I "add" to my applet. I then want to refer back to the appletin the panel. I can do this as follows using a static my_applet variable but I want to avoid the use of static variables.
The classes are jarred together.
I know I can also do in the applet init() function, and then have a constructor for testPanel like testPanel(testApplet test_applet)
However, I want to be able to do something like in the testPanel class. I tried it but it returns null.