I've created a java installer with a splash screen. My main method first does some work and then starts a thread that will open the main window for my application. This is done so the main method can exit and the exe will know when to stop showing the splash screen.
However, the main window of my application won't show focused, sometimes it isn't even visible untill I click twice on the taskbar's application focus button.
Everything just works fine when I leave out the splash screen.
Is there a way to fix this?