如何从 JFrame 应用程序运行小程序程序? [英] how to run a applet program from a JFrame application?
本文介绍了如何从 JFrame 应用程序运行小程序程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个运行良好的 JFrame 应用程序.现在我想从那个 JFrame 应用程序调用一个小程序程序,但我不知道该怎么做.
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.
请给一些建议.
推荐答案
我会建议您在 JFrame 中添加小程序.Applet 只是组件.您可以将其添加到任何 JFrame 组件中.
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);
这篇关于如何从 JFrame 应用程序运行小程序程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文