GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes splash screen and the java app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "splash screen and the java app" Watch "splash screen and the java app" New topic
Author

splash screen and the java app

Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
i use netbeans, and use the drag and drop feature of netbeans to make applications in java. my problem is i have a splash screen, which is a separate class, and the java application(my application), how to combine those 2? I instantiate the splashscreen and call it in the constructor of my main class but it doesnt show up.

any help would be much appreciated. thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

How about showing us an SSCCE that includes a very simplified version of your main app and the splash screen?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
For example this is my main application class


and this is my splashscreen


the 2 screens will pop up together, instead the splash screen will be first and then the application's Frame.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
You're putting the EDT to sleep and thus your whole GUI with this code:



If you are not familiar with the EDT or what I'm stating above, please read about Concurrency in Swing
 
GeeCON Prague 2014
 
subject: splash screen and the java app