如何在Eclipse中设置SplashScreen?
我的应用程序会在启动主窗口之前加载闪屏。如何设置 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
此链接最好地解释了如何使用 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.
是的,启动画面图像必须命名为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.
添加
到“参数”选项卡下“调试/运行”配置中的 VM 参数。
Add the
to VM arguments in the Debug/Run configurations under Arguments tab.
致谢: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
(您的路径将非常相似,请手动导航到它)。长版:
现在,出于我想发布此答案的真正原因:
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:
And now, for the real reason I wanted to post this answer: