hide();
setVisible(false);
    public void actionPerformed(ActionEvent ae) {        if (ae.getSource() == butOkay) {            GUIPreferences.getInstance().setMiniReportSizeWidth(getSize().width);            GUIPreferences.getInstance().setMiniReportSizeHeight(getSize().height);            GUIPreferences.getInstance().setMiniReportPosX(getLocation().x);            GUIPreferences.getInstance().setMiniReportPosY(getLocation().y);            hide();        }    }