如何在Eclipse中设置SplashScreen?

发布于 2024-12-06 05:47:15 字数 140 浏览 0 评论 0原文

我的应用程序会在启动主窗口之前加载闪屏。如何设置 Eclipse 中运行的启动屏幕? NetBeans 中有一个位置可以放置“splash:splashScreen.png”,以便应用程序可以从 SplashScreen 启动。 Eclipse 中类似的事情>

My App would load a splashScreen before launching the main window. How do you set the splashScreen running in Eclipse? There was a place to put the "splash:splashScreen.png" in NetBeans so that the App would start with the SplashScreen. Anything like that in Eclipse>

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

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

发布评论

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

评论(4

無心 2024-12-13 05:47:15

此链接最好地解释了如何使用 netbeans 添加启动屏幕 -

http://wiki.netbeans.org/Splash_Screen_Beginner_Tutorial

对于 Eclipse,只需将 -splash:path/to/image 添加到调试/运行配置面板中的 VM 参数即可。

This link explains best how to add your splashscreen with netbeans -

http://wiki.netbeans.org/Splash_Screen_Beginner_Tutorial.

For Eclipse just add the -splash:path/to/image to VM arguments in the Debug/Run configurations panel.

逆流 2024-12-13 05:47:15

是的,启动画面图像必须命名为splash.bmp,如下所述:http://www.eclipse.org/articles/Article-Branding/branding-your-application.html。预计闪屏将与产品在同一个插件中。如果这不适合您,您可能需要在配置中做出明确的选择。

Yes, the splash screen image has to be named splash.bmp as described here: http://www.eclipse.org/articles/Article-Branding/branding-your-application.html. The splash screen is expected to be in the same plug-in as the product. If this is not true for you, you might want to make an explicit choice in the configuration.

再见回来 2024-12-13 05:47:15

添加

-splash:路径/到/图像

到“参数”选项卡下“调试/运行”配置中的 VM 参数。

Add the

-splash:path/to/image

to VM arguments in the Debug/Run configurations under Arguments tab.

星軌x 2024-12-13 05:47:15

致谢:http://www.mkyong。 com/java/how-to-change-eclipse-splash-welcome-screen-image

简短版本: 替换eclipse-jee-neon-R-win32\plugins\org.eclipse.platform_4.6.3.v20170301-0400\splash.bmp (您的路径将非常相似,请手动导航到它)。

长版:

1) 找到“config.ini”文件

在下面找到Eclipse配置文件“config.ini”
地点:

{eclipse.dir}\configuration\config.ini

2) 查找“osgi.splashPath”

打开“config.ini”文件,找到“osgi.splashPath”找出位置
Eclipse IDE的启动图像被存储,eg:

osgi.splashPath=platform\:/base/plugins/org.eclipse.platform

默认的启动图像存储在:

{eclipse.dir}/plugins/org.eclipse.platform 文件夹

3) 找到“splash.bmp”图像

在以下位置找到“splash.bmp”图像:

{eclipse.dir}/plugins/org.eclipse.platform_3.3.200.v200906111540/splash.bmp

(本例中3.3.200.v200906111540是Eclipse版本,它可能与您的版本不同)

4)替换它

将默认的“splash.bmp”图像替换为您的图像(您可能需要保留原始图像的备份副本)。

5) 完成

重新启动 Eclipse IDE 即可查看结果!

现在,出于我想发布此答案的真正原因: 在此处输入图像描述

Credits: http://www.mkyong.com/java/how-to-change-eclipse-splash-welcome-screen-image

Short version: replace eclipse-jee-neon-R-win32\plugins\org.eclipse.platform_4.6.3.v20170301-0400\splash.bmp (your path will be very similar, navigate to it manually).

Long version:

1) Find “config.ini” file

Find the Eclipse configuration file “config.ini” in the following
location:

{eclipse.dir}\configuration\config.ini

2) Find “osgi.splashPath”

Open the “config.ini” file, find the “osgi.splashPath” to find out where
Eclipse IDE's splash image is stored, e.g.:

osgi.splashPath=platform\:/base/plugins/org.eclipse.platform

The default splash image is stored in:

{eclipse.dir}/plugins/org.eclipse.platform folder

3) Find the “splash.bmp” image

Find the “splash.bmp” image in the following location:

{eclipse.dir}/plugins/org.eclipse.platform_3.3.200.v200906111540/splash.bmp

(3.3.200.v200906111540 is the Eclipse version in this case, it may be different than yours)

4) Replace it

Replace the default “splash.bmp” image with yours (you may want to keep a backup copy of the original).

5) Done

Restart your Eclipse IDE to see the result!

And now, for the real reason I wanted to post this answer: enter image description here

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