Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I force a JDialog to appear on top of all windows on my screen?

843806Jun 30 2008 — edited Jun 30 2008
My CAD software at work has a Java API that I've wrote an app for. I have to display everything in a modal JDialog so that it doesn't conflict with the CAD software. The one problem is when my CAD software launches the dialog it appears behind the CAD window. How can I force the dialog window to be on top of every window on the screen? toFront() doesn't work.

For whatever reason the dialog window is opening unselected while my CAD screen is still the active window in Windows. Is there a way to have a Java app select which window is active in a Windows session? Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2008
Added on Jun 30 2008
3 comments
630 views