Solved

Splash window is obscured by the application mainframe

Posted on 2004-03-25
6
181 Views
Last Modified: 2010-03-31
Hello,
I am working on an application that takes a long time to load.
So I kind of need the splash window I made.

Well, it only makes sense to launce the splash window (based on JWindow) as soon as
    possible, that is directly after starting in main().
Some seconds later the main frame (based on JFrame) becomes visible and obsures the splash
that must remain visible until the application is fully operational; that is about 15" later (it's very large).
Even things like   Splash.toFront();   don't work.
Only minimising the main frame reveals that the splash is still sitting there.
What can I do?
One workaround is to display the splash (also) somewhere in a JPanel but that's a bit stupid.

;JOOP!
0
Comment
Question by:sciuriware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10679250
Either defer the showing of the frame, or use JDialog instead of JWindow and make sure it is modal. Another option is to create the main frame of the application empty, not showing it and setting that frame as the parent of your JWindow.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10684326
Ideally, the JFrame.show () should happen only after the splash.dispose (). Why are you displaying the JFrame when the application has not yet become fully operational?
0
 
LVL 24

Author Comment

by:sciuriware
ID: 10688197
1) a modal JDialog derivate blocks the screen.
2) the main frame is essential: there is lots of displaying going on when initialising.
     The user needs the info!
3) I found a solution myself:
     I 'launch' the splash Window 2ce:
    a) as soon as possible in main( )
    b) the JFrame.show( ) is followed by a relaunch of a 2nd one and a disposal of the 1st splash, in that order.
After some experimenting I found a sequence that doesn't show gaps (as far as the user can see).
Because the 2 splashes look the same it's just 2 times the same display.
In real life the 1st splash is obscured by the main frame and goes away without notice.

Sorry I was hoping for a surprising idea by someone.
I found a lot of topic around EE and in JAVAWORLD, but none to make things easier.

I will request for a refund this time.
Thanks for your time.
;JOOP!
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10690125
>>  1) a modal JDialog derivate blocks the screen.
It will unless you launch it from a seperate thread

>> 2) the main frame is essential: there is lots of displaying going on when initialising.
>>     The user needs the info!
Wasn't obvious from the question! ;-)

Good luck!
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 10712750
Closed, 40 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question