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
Steve W. Jackson - 18 Oct 2007 21:16 GMT
> Hello,
>
[quoted text clipped - 8 lines]
> 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.

Signature
Steve W. Jackson
Montgomery, Alabama
Thomas Kellerer - 19 Oct 2007 06:59 GMT
Todd, 18.10.2007 22:01:
> Hello,
>
[quoted text clipped - 5 lines]
> 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