How do I force a JDialog to appear on top of all windows on my screen?
843806Jun 30 2008 — edited Jun 30 2008My 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.