Solved

Splash window is obscured by the application mainframe

Posted on 2004-03-25
6
177 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to add new optional parameter to JSP 1 41
fibonacci ten numbers 4 38
String array comparison 4 33
Adding multiple JVM environments to RedHat 6 7 20
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

770 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