Hello.
How can I do splash component ?
(a dialog that appears as a promo, before application starts).
Thanks :)
Christian - 15 Aug 2007 10:17 GMT
Eitan M schrieb:
> Hello.
>
> How can I do splash component ?
> (a dialog that appears as a promo, before application starts).
>
> Thanks :)
have a look at
java.awt.SplashScreen
or use eclipse rcp
Christian
Muntasir Azam Khan - 15 Aug 2007 10:19 GMT
> Hello.
>
> How can I do splash component ?
> (a dialog that appears as a promo, before application starts).
>
> Thanks :)
I usually use a JWindow with a single Image drawn on it that is
displayed in a separate thread while the main JFrame loads. Just
before the JFrame's setVisible() method is called, it closes the
JWindow. I actually got the idea from the SwingSet2 demo in Sun's
JDK.
Muntasir
Roedy Green - 15 Aug 2007 10:37 GMT
>How can I do splash component ?
>(a dialog that appears as a promo, before application starts).
see http://mindprod.com/jgloss/splash.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Andrew Thompson - 15 Aug 2007 11:01 GMT
...
>How can I do splash component ?
Besides the other suggestions (though I'd swap an AWT
based splash, for the second reply's JWindow), you might
also consider using web start to launch the app.
Web start not only offers a splash screen, but also
desktop icons and and menu items.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Piotr Kobzda - 16 Aug 2007 15:09 GMT
> How can I do splash component ?
In Java 1.6+ you can use:
#java -splash:<imagepath> ...
piotr
Eitan M - 19 Aug 2007 07:05 GMT
Is splash always the first window on screen,
or can it be a window i.e with "waiting for connection ..." caption ?
Thanks :)
Andrew Thompson - 19 Aug 2007 08:14 GMT
>Is splash always the first window on screen,
By definition, pretty much. Although..
>or can it be a window i.e with "waiting for connection ..." caption ?
.."Wait" dialogs might have an image, but that does
not really make them a 'splash' screen.
Splash screens are specialized and tricky in that they
must appear on-screen very fast, without needing a lot
of classes from the JVM to load.
If you need to show an image in (for example) a JDialog
or (borderless) JWindow during run-time, that can be
achieved easier than most of the methods outlined
above.

Signature
Andrew Thompson
http://www.athompson.info/andrew/