jQuery in Action, 2nd edition*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "splash screen and the java app" Watch "splash screen and the java app" New topic

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

Joined: Oct 27, 2005
Posts: 19651

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

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

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
I agree. Here's the link: http://aspose.com/file-tools
subject: splash screen and the java app
Similar Threads
Simple Question
a welcome screen
Smart Splash screen
options in jar files....
JFrame Calls..