Skip to content
Advertisement

How to make a splash screen for GUI?

Hi there I’m new to GUIs in Java and was trying to make a splash screen or an image appear for 3 seconds. Then after that it it will go onto my main program. Does anyone have an ideas how to do this or can link me to any tutorials?

So far I have done this but not sure where to go from here.

JavaScript

Advertisement

Answer

Simplest one , is to create JFrame and add your screen on it then use Thread.Sleep(long millies)

Try this code:

JavaScript

Or you can Create a Splash Screen by using SplashScreen class

Advertisement