I am trying to create a splash screen that displays a gif animation. The thing about my Splash screen I want to actually make it appear after the main() function returns (Main() just creates a login screen. I want my GUI initialization to begin after the user puts in a password). In addition my splash screen should disappear after the completion of certain non-GUI background actions.
So... Can I (or should I) use awt's SplashScreen class in this scenario?
My current implementation manages to display a blank splash screen and hide it in the right time. The problem is that the gif animation is only loaded after the GUI is initialized. I think it is because the EDT is busy with GUI initialization and can't display animation.
I was hoping that maybe SplashScreen class would solve that issue. If anyone has any hints or tips it would be appreciated.