I created a nice little splash screen with a JProgressBar at the bottom. Looks nice. I am simulating a long running task for the progress bar and obviously have to use a static length for the time for
testing.
Now I want to change it so that it's based on the initialization of my application. There are a few things I do which take a bit of time.
confirm DB presence and connection
load resources (images, sounds, etc)
load properties and configuration for current client
So how would I calculated how long each of these processes will take so that I can update my progress bar accordingly? Is this even possible?
Another possibility is I could remove the progress bar and just have a JLabel with updated value of what part the system is on. But I kind of like the look of the progress bar.