I have a Component which I am using both in a standalone Java application as well as in a Java applet. How can I figure out from within the Component whether my component is in an applet?
Also, once I figure out that I'm running in an Applet, how can I get access to the Applet?