给定一个JApplet,如何获取与该小程序对应的JFrame对象?
JApplet applet = this;
JRootPane rootPane = getRootPane();
Container contentPane = getContentPane();
JFrame jframe = ...; // How do I obtain the JFrame?发布于 2009-10-03 10:38:58
您可以从小程序创建新的JFrame。但是在小程序周围没有像JFrame这样的容器。Applet是一个容器。
https://stackoverflow.com/questions/1513376
复制相似问题