I have a swing app and I want there to be a title screen that lasts for a few seconds and then transitions to the program. What's the best way to do this? I was thinking a 开发者_JAVA技巧layered pane with a timer, but maybe there's something better?
Besides the JWS based splash, see also the SplashScreen class. The AWT based class provides more control over the splash than JWS, but the JWS based splash worked for versions before 1.6.
You might look into the splash screen feature of Java Web Start.
精彩评论