创建闪屏

发布于 2024-09-04 08:11:36 字数 75 浏览 1 评论 0原文

如何创建像 netbeans 或 eclipse 启动屏幕一样的启动屏幕。请帮我问候

Chandu

How to create a splash screen as like netbeans or eclipse splash screen. Please help me for this

Regards,

Chandu

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

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

发布评论

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

评论(5

不交电费瞎发啥光 2024-09-11 08:11:36

或者,您可以添加一个条目,例如:

<SplashScreen-Image>images/splash.png</SplashScreen-Image>

到您的 MANIFEST.MF。您可以使用诸如 Maven 之类的构建工具自动添加此内容。

还可以简单地使用 JWindow 作为启动屏幕,但只有在 JVM 运行时才会显示。使用所描述的方法堆栈器(与我指出的方法相同),您甚至可以在 JVM 完成加载之前显示启动画面,这在较旧的硬件上可能是必要的。

Alternatively you can add an entry such as this one:

<SplashScreen-Image>images/splash.png</SplashScreen-Image>

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.

染火枫林 2024-09-11 08:11:36

从 java 1.6 开始你可以在命令行中指定它

java -splash:filename.gif SplashTest

请参阅这篇文章

Since java 1.6 you can specify this at the command line

java -splash:filename.gif SplashTest

See this article

通知家属抬走 2024-09-11 08:11:36

有一个相当于启动屏幕的 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.

GRAY°灰色天空 2024-09-11 08:11:36

您还可以使用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.

遇见了你 2024-09-11 08:11:36

如果您想要一个像简单图像一样在应用程序之前加载的启动屏幕,请右键单击项目名称上的 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.

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