简体   繁体   中英

java application show progress on starting an application

We have a big java desktop application, which takes about minute to start, Currently we use splash screen on stat-up, Is it possible to show progress bar with splash screen...? I mean when we start Some IDE like netbeans, IDEA Intellij, They show progress in form of progress-bar on splash screen. Progress bar might be showing progress in loading classes.. Thanks

You can use the java SplashScreen class. To set the progress bar you can draw a rectangle on the splash screen. As you hit different parts of your start up you can update this rectangle so that is acts like a progress bar. This demo code from Oracle show this. See the method titled renderSplashFrame()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM