• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Keeping a JWindow on top

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic