Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

splash component ...

Thread view: 
Eitan M - 15 Aug 2007 10:07 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.