开发者

How to call an applet from another Java file?

开发者 https://www.devze.com 2022-12-08 23:37 出处:网络
I have a Java file and from that I want to call an applet file开发者_高级运维. How to do it?You need something to display the applet in, it won’t show itself miraculously somewhere.

I have a Java file and from that I want to call an applet file开发者_高级运维.

How to do it?


You need something to display the applet in, it won’t show itself miraculously somewhere.

JFrame frame = new JFrame();
frame.getContentPane().add(applet);
frame.setVisible(true);
0

精彩评论

暂无评论...
验证码 换一张
取 消