创建闪屏
如何创建像 netbeans 或 eclipse 启动屏幕一样的启动屏幕。请帮我问候
,
Chandu
How to create a splash screen as like netbeans or eclipse splash screen. Please help me for this
Regards,
Chandu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
或者,您可以添加一个条目,例如:
到您的 MANIFEST.MF。您可以使用诸如 Maven 之类的构建工具自动添加此内容。
还可以简单地使用 JWindow 作为启动屏幕,但只有在 JVM 运行时才会显示。使用所描述的方法堆栈器(与我指出的方法相同),您甚至可以在 JVM 完成加载之前显示启动画面,这在较旧的硬件上可能是必要的。
Alternatively you can add an entry such as this one:
To your MANIFEST.MF. You can have a build tool such as maven add this automatically.
There is also the posibility to simply use a JWindow as a splash screen, but it won't show until the JVM is running. Using the method stacker described(which is the same as the one I point out) you'll show the splash even before the JVM has finished loading, which might be necessary on older hardware.
从 java 1.6 开始你可以在命令行中指定它
请参阅这篇文章
Since java 1.6 you can specify this at the command line
See this article
有一个相当于启动屏幕的 Javafx 示例。然而,这个启动屏幕基本上是一个 java swing 小程序,它从 javafx 调用并显示给用户,并使用进度条和加载内容的标题或多或少地模拟 eclipse 和 netbeans 启动屏幕。以下是链接
http://0divides0.wordpress.com/2011/03/ 17/splash-screen-with-javafx/
你必须能够拿到代码并分离出用java swings编写的闪屏代码并为自己使用。
There is a sample Javafx equivalent of Splash screen. However this splash screen is basically a java swing applet that is called from javafx to be displayed to the user and simulates more or less eclipse and netbeans splash screen using progress bar and titles for the loaded contents. Following is the link
http://0divides0.wordpress.com/2011/03/17/splash-screen-with-javafx/
You must be able to get the code and seperate out the splash screen code written in java swings and use it for yourself.
您还可以使用www.bitstrings.org 中的splasher-maven-plugin 创建或编辑启动屏幕。它对于品牌推广或当您需要覆盖一些动态信息(例如版本或某些配置文件)时可能很有用。
You can also use the splasher-maven-plugin from www.bitstrings.org to create or edit a splash screen. It may be useful for branding or when you need to overlay some dynamic info like the version or some profile.
如果您想要一个像简单图像一样在应用程序之前加载的启动屏幕,请右键单击项目名称上的 netbeans,然后转到属性。在属性窗口中,转到最后一个框(虚拟机选项)中的“运行”,粘贴以下内容:
-splash:src/images/pictureName.jpg
上面假设您有一个名为 images 的 java 包,其中包含您想要的图像,您可以更改路径去任何你想去的地方。
If you want a splash screen like a simple image that loads prior to your application, right click in netbeans on the project name, go to properties. In properties window go to RUN in the last box (VM OPTIONS) paste this:
-splash:src/images/pictureName.jpg
This above assumes you have a java package called images with the image you want in it, you can change the path to where ever you want.