Is there a startup banner class?

T

Todd

Hello,

I have an application to which I would like to add a startup banner.
Much like other applications that display this banner while performing
a somewhat lenghty (by computing standards) process in the background,
I have the same need.

Is there a class that supplies the panel (banner) and methods to
determine when the background process has completed?

Thanks in advance,
Todd
 
S

Steve W. Jackson

Todd said:
Hello,

I have an application to which I would like to add a startup banner.
Much like other applications that display this banner while performing
a somewhat lenghty (by computing standards) process in the background,
I have the same need.

Is there a class that supplies the panel (banner) and methods to
determine when the background process has completed?

Thanks in advance,
Todd

<http://java.sun.com/javase/6/docs/api/java/awt/SplashScreen.html>
describes a new class available in Java 6 for this purpose. In earlier
Java versions you have to do it yourself, and it's somewhat limited by
the fact that the common techniques *need* the JVM since you have to
have AWT or Swing components. But you might find some tips or tricks to
make it better if you search.
 
T

Thomas Kellerer

Todd, 18.10.2007 22:01:
Hello,

I have an application to which I would like to add a startup banner.
Much like other applications that display this banner while performing
a somewhat lenghty (by computing standards) process in the background,
I have the same need.

Is there a class that supplies the panel (banner) and methods to
determine when the background process has completed?

In addition to what Steve has said:

You can simply open a JWindow (or a Window) instance an put an image on
it. This would be opened from within your background task and once the
task is finished it simply closes the window (this assumes that you have
only one background tastk).

Search for "java splash screen" and you'll get loads of examples.

But if you can move to Java 6 then I'd use the features of Java 6.

As an alternative, if you are on Windows you can use e.g. launch4j to
create an EXE Wrappe which can also display a splash screen (and even
before the JVM starts).

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top