public void showDialog() {
        setLocationRelativeTo(null);
        setVisible(true);
        toFront();
    }
<code>showDialog</code> sets this dialog as visible, and brings it to the
front.
jme3-awt-dialogs/src/main/java/com/jme3/awt/AWTSettingsDialog.java