Java Web Start (JNLP) 加载消息
当用户从网页加载 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看此处 (或见下文),您可以添加自己的启动画面,在这种情况下它看起来只是一个图像。还有两个问题:下载时间和应用程序启动时间。在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.