Splash Screen

Hello all and compliments of the season.

I've been playing around with my java as a way to enjoy this festive period however, I'm kinda stuck on some splash screen I'm working on.

I've got this class that extends JFrame and implements Runnable and it's working fine - displaying all it's supposed to display and running all that it's supposed to run - on its own.

It running on its own isn't my plan hence I've got this other class class which inherits from JFrame calling it. It displays the "threaded frame" with its title however, the contents of the frame (the panels, labels etc) are not being displayed.

Please can someone help me out with this?

Thanks.

William

[719 byte] By [haganbilla] at [2007-10-2 8:40:11]
# 1
[url= http://www.javaworld.com/javaworld/javatips/jw-javatip104.html]Java Tip 104: Make a splash with SwingCreate thread-safe splash screens using Swing[/url]
yawmarka at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 2
need to see code.
mlka at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 3
I'm afraid it is not possible to help without some code.... Please don't post everything, and when you do post a concise sample of the code please use the [code] tags (the code button will insert them for you).
macrules2a at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 4
Sorry for not putting up the code but you see, right now, i'm far away from my system as i'm writing from an internet cafe (and I ain't got an internet connection at home)...please bear with me.
haganbilla at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 5
> please bear with me.Let's wait until you're able to specifically show the problem you're having. Otherwise, it's just going to be a bunch of guesswork. Check out that tutorial posted in the meantime to see if you can glean any hints.Best of luck!
yawmarka at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 6
Two suggestions:1. While still in the cafe, read the link posted by yawmark, take notes, and when you come home compare it with the code you have.or2. Wait until next year(?) when Java 1.6 (6.0?) is released. It comes with a new splash screen class.
happy_hippoa at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 7

> Sorry for not putting up the code but you see, right

> now, i'm far away from my system as i'm writing from

> an internet cafe (and I ain't got an internet

> connection at home)...please bear with me.

No worries, but you will probably find that when you go to create a more simple version for posting here, that you will discover the bug... That means that you will have solved the problem yourself, and maybe even discovered something new about Java that you hadn't thought of before.

macrules2a at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 8
> 2. Wait until next year(?) when Java 1.6 (6.0?) is> released. It comes with a new splash screen class.It does?!? Now that is a waste of time (*goes off to see if the iritating JTable focus bugs have been fixed*)
macrules2a at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 9

>

> It does?!? Now that is a waste of time (*goes off to

> see if the iritating JTable focus bugs have been

> fixed*)

http://download.java.net/jdk6/docs/api/java/awt/SplashScreen.html

You can try it now, if you want. Just donwload the latest Mustang build from

https://mustang.dev.java.net/

happy_hippoa at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 10
(And indeed you can fix 'em if they're still there... please... pretty please...?)
dcmintera at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...
# 11
Thanks fellas. I've worked it out...albeit staying up till about 4a.m. All I had to do was have the statements leading to the display of the frame hooked up to a thread...Thanks for the comments...really appreciate them all...Happy new year....
haganbilla at 2007-7-16 22:42:02 > top of Java-index,Java Essentials,Java Programming...