How can I create a JFrame that would look like a JPanel/JLabel?
I need a splash screen that will be displayed while my program does some computing before showing the main window (I know there’s a splash screen option in Java, but I need mine to show after loading class, not during).
How can I create that?
Create an undecorated
JFramelike this:However, I suggest you use the
java.awt.SplashScreenas it is a piece of code that has been used and tested in so many cases, so it is definitely more stable than the one you can write.