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 / October 2007

Tip: Looking for answers? Try searching our database.

Is there a startup banner class?

Thread view: 
Todd - 18 Oct 2007 21:01 GMT
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


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.