NetBeans的启动画面功能如何工作? [英] How does NetBeans' Splash Screen feature work?

查看:156
本文介绍了NetBeans的启动画面功能如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NetBeans新手,只是注意到在文件>>项目属性>>应用程序对话框中有一个标有启动画面的文本字段,允许您指定路径在程序启动时要显示的图像。

New to NetBeans and just noticed that in the File >> Project Properties >> Application dialog there is a text field labeled Splash Screen that allows you to specify a path to an image that you would like displayed when your program is launching.

我想自定义启动画面的工作方式(添加进度条等)并且会喜欢从头开始编码,但不知道从哪里开始。基于Java / Swing的启动画面的最佳实践是什么?

I want to customize the way my splash screen works (adding a progress bar, etc.) and would like to code it from the ground up but don't know where to start. What are the best practices for Java/Swing-based splash screens?

感谢您输入任何内容!

推荐答案

项目属性 - >应用程序 - >启动画面允许您将图像添加到应用程序。此属性在 MANIFEST.MF 中设置一个名为 SplashScreen-Image:的值,例如 SplashScreen-Image:META-INF / GlassFish316x159.jpg 此属性将自动使图像显示为闪屏。它在NetBeans中不起作用,必须在IDE外部运行。

The project properties -> Application -> Splash Screen allows you to add an image to an application. This property sets a value in the MANIFEST.MF called SplashScreen-Image: e.g. SplashScreen-Image: META-INF/GlassFish316x159.jpg This property will automatically cause the image to display as a splash screen. It does not work inside NetBeans, and must be run outside the IDE.

有一个教程启动画面初学者教程详细介绍了如何使用它。本教程是针对NetBeans 6.8完成的,但是可以在7.2.1上使用,这是本文发布时的最新版本。

There is a tutorial Splash Screen Beginner Tutorial that details how to use it more detail. The tutorial was done for NetBeans 6.8, but will work on 7.2.1 which is the latest at the time of this post.

这篇关于NetBeans的启动画面功能如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆