This is my existing main window of an application and I want to add splash screen to it. I've created another JFrame for splash screen.
I've tried making object of splash screen JFrame and making it visible=true and also
tried making static methods and using them, still not working.
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Splash_UI window = new Splash_UI();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});