如何更改 NetBeans 6.7 中 Applet 查看器的尺寸

发布于 2024-07-26 16:28:01 字数 208 浏览 2 评论 0原文

在开始使用 Netbeans 6.7 进行 Java 编程之前,我一直在等待 Netbeans 6.7 的稳定版本。

我想知道如何更改 NetBeans 6.7 中 Applet Viewer 的尺寸。

当我按 SHIFT + F6 运行 java 文件时,它会打开一个小程序,但尺寸太小,我认为它们约为 300 X 300。

如何更改这些尺寸?

I was waiting for the stable release of Netbeans 6.7 before starting to use it for my Java Programming.

I would like to how to change the Dimensions of the Applet Viewer in NetBeans 6.7.

When ever i run a java file by pressing SHIFT + F6, it opens an Applet but the dimensions are too small, i think they are around 300 X 300.

How to change those dimensions ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

抱猫软卧 2024-08-02 16:28:01

或者在运行时使用 Resize() 选项更改小程序大小。 将调整大小(宽度,高度)放入小程序的 init() 中。

Or use the Resize() option to change the applet size when you run. Put the resize(width,heaght) in init() of your applet.

旧故 2024-08-02 16:28:01

转到项目属性,选择“应用程序”->“应用程序” Web Start,选择Applet 描述符并单击Applet 参数按钮。 您可以在那里设置所需的尺寸。

Go to the project properties, there you choose Application -> Web Start, select Applet descriptor and click the button Applet Parameters. There you can set required dimensions.

怂人 2024-08-02 16:28:01

我在 Ubuntu 10.10 上使用 Netbeans 6.9。 我也遇到过这些问题。 从 http://kbase.advenci.com/doku.php?id=netbeans_java_applet_startup 找到建议 去工作。

当您在 NetBeans 中创建 Java 小程序时,NetBeans IDE 会自动创建一个关联的 HTML 文件,该文件控制小程序的启动大小。 如果您想覆盖它,则不能简单地编辑生成的 HTML 文件,因为每次运行小程序时它都会被覆盖。 请执行以下操作:

将生成的 HTML 文件从 build 文件夹复制到 src 文件夹,然后
根据需要编辑 src 文件夹中的 HTML 文件。 此 HTML 文件将用作覆盖 文件,并且不会被 IDE 覆盖。

I am using Netbeans 6.9 on Ubuntu 10.10. I also had these problems. Found the advice from http://kbase.advenci.com/doku.php?id=netbeans_java_applet_startup to work.

When you create a Java applet in NetBeans, the NetBeans IDE automatically creates an associated HTML file which controls the startup size of the applet. If you want to override this, you cannot simply edit the generated HTML file, as it gets overwritten each time the applet is run. Do this instead:

Copy the generated HTML file from the build folder to the src folder, then
Edit the HTML file in the src folder as needed. This HTML file will function as an override file, and will not be overwritten by the IDE.

情独悲 2024-08-02 16:28:01

这个答案是不正确的。运行时使用 Resize() 选项更改小程序大小。 将调整大小(宽度,高度)放入小程序的 init() 中。

That answer is not correct .use the Resize() option to change the applet size when you run. Put the resize(width,heaght) in init() of your applet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文