Given a JApplet, how do I obtain the JFrame object corresponding to this applet?
JApplet applet = this;
JRootPane rootPane = getRootPane();
Container contentPane = getContentPane();
JFrame jframe = ...; // How do I obtain the JFrame?
Given a JApplet, how do I obtain the JFrame object corresponding to this applet?
JApplet applet = this;
JRootPane rootPane = getRootPane();
Container contentPane = getContentPane();
JFrame jframe = ...; // How do I obtain the JFrame?
You can create a new JFrame from an Applet. But there is no container like a JFrame surrounding an Applet. The Applet is ths container.