how to run a applet program from a JFrame application?

▼魔方 西西 提交于 2019-12-12 05:30:09

问题


I am having a JFrame application which is running fine. Now I want to call a applet program from that JFrame application and I don't know how to do it.

Please give some suggestions.


回答1:


I will suggest you to add the applet in JFrame. Applet is nothing but the component. You can add it in any of the JFrame component.

myPanel.add(myApplet);


来源:https://stackoverflow.com/questions/19221544/how-to-run-a-applet-program-from-a-jframe-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!