Java Web Start (JNLP) 加载消息

发布于 2024-08-09 12:39:58 字数 109 浏览 2 评论 0原文

当用户从网页加载 java web start 应用程序时,是否可以显示自定义加载消息?也许是进度条或类似的东西。连接速度慢的用户在第一次下载 jar 时会看到“Java Loading...”太长时间。

Is it possible to display a custom loading message when a user loads a java web start application from a webpage? Maybe a progressbar or something similar. Users with slow connections see "Java Loading..." for far too long while the jars are downloaded for the first time.

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

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

发布评论

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

评论(1

冰雪之触 2024-08-16 12:39:58

如果您查看此处 (或见下文),您可以添加自己的启动画面,在这种情况下它看起来只是一个图像。还有两个问题:下载时间和应用程序启动时间。在java6中,您可以添加实际的启动屏幕(组件)并显示进度条等。但这将针对应用程序启动时间而不是下载时间。如果您查看此处,您可以在下载屏幕上自定义一些文本。在某些时候,无论连接速度如何,用户都必须花时间下载文件,但是一旦他们完成一次,如果您的设置正确,文件应该在本地缓存,并且启动速度应该更快下次。

--来自页面
我如何提供自己的启动画面?

Java Web Start 需要在 Java 加载时显示初始启动屏幕。为了后续访问,您可以在 JNLP 文件中使用标签指定用于启动屏幕的图像文件

其中 mysplash.jpg 是启动屏幕的图像文件。应用程序第一次运行时,它将使用标准的启动屏幕。之后,它将使用您提供的图像。

if you look here(or see below), you can add your own splash screen, it looks like just an image in this case. Also there are two issues the download time and the application startup time. In java6 you can add an actual splash screen(component) and show progress bar etc. But this would be for application startupup time and not download time. If you look here, you can customize some text on the download screen. At some point the user is going to have to take the time to download the files regardless of the connection speed, but once they have done it once, if you settings are correct, the files should be cached locally and it should start much faster the next time.

--FROM PAGE
How can I provide my own splash screen?

Java Web Start needs to put up the initial splash screen while Java is loading. For subsequent access, you can specify an image file to use for the splash screen in the JNLP file with the tag

where mysplash.jpg is the image file for your splash screen. The first time your application runs, it will use the standard splash screen. After that, it will use the image you provide.

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