我在eclipse下写过java小程序,通过“运行配置”提供小程序参数运行。我还编写了一些包含 标签的 html 文件。但是我提交html文件无法在eclipse下运行applet。我不知道如何在eclipse 中设置运行配置以使用applet 打开一个html 文件。我正在寻找通过为 eclipse 提供 html 文件来在 eclipse 下运行 applet 的想法。如果有人能帮助我,我将不胜感激。提前致谢。
最佳答案
首先遵循 Justins 的建议。查看此链接以了解如何通过 html 将参数传递给小程序。 http://www.brainjar.com/java/parameters/
来自网站的片段。
<applet code="MyApplet.class" width="300" height="100">
<param name="background-color" value="#ffffff">
<param name="foreground-color" value="#000000">
</applet>
关于java - 如何通过为eclipse 提供一个html 文件来在eclipse 中启动applet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7179636/