• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to refer back to an applet from a panel that has been added to it

 
James Rydell
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Can anyone tell me if this is possible?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic