开发者

How to call an applet from another Java file?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜