aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Keeping a JWindow on top Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Keeping a JWindow on top" Watch "Keeping a JWindow on top" New topic
Author

Keeping a JWindow on top

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
I created a splash window from a JWindow. I start my JWindow in a thread inside my app so that loading of my app looks faster. The problem with this is that the main window will show over top of the splash window a few seconds after the splash initially shows. I want to keep the splash window on top until it disposes. How can I do that? I've tried using toFront() but I am not getting the desired results.
Thanks,
Frank
steve richardson
Greenhorn

Joined: Dec 16, 2000
Posts: 3
Frank,
I have an idea what it might be but would you mind posting the key parts of the code so I can see exactly how you are going about this.
Regards,
Steve
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Sure.
Here is the splash window

Here is where I open the splash window in my app.

There is alot more code but I don't want to post it because it will confuse my question. What happens is that the splash window shows when the app is started. About a second after that the main application window shows over top of the splash window. What I want to happen is the main window show behind the splash window. I want to keep the splash window on top of all windows while it is shown.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keeping a JWindow on top