How to set a JDialog owner to a TopComponent

"cab" <[email protected]> Thu, 05 Oct 2017 17:34:43 +0000
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hi all,

I'm not sure if this is possible. 

I have a netbeans plugin I created, which is installed onto a custom netbeans IDE. This plugin has a bunch of topcomponents. Sometimes I need to bring up a custom dialog, and I want this dialog to stay on top of the IDE (when the IDE is minimized, I want this dialog minimized, and when the IDE is brought back up, I want the dialog to be on top). 

So, I want to set the JDialog window owner, but I don't know what I can set it to. I thought I could set it to one of my topcomponents, but this does not look possible. Does anyone have any suggestions?