public static final java.awt.Window getCurrentWindow()
Gets the currently operational window in the application. This is the
active modal window, or the IDE's main window if there are no visible
modal windows in the container hierarchy. Use this method to correctly
set the parent of a dialog. It should only be called from the AWT event
thread prior to showing the child window.