Hello.
I have a problem with the implementation of the dialogs of UNO-AWT. When i
show the dialog as non-modal, using the setVisible method from the XWindow
interface, the showed dialog doesn't close or hides when i press the "x"
button (the default close button of all windows). Is it possible to close
the dialog with the default close button, or as a modal dialog that method
doesn't work?.

P.S: I use this method to show or hide a dialog.

public void setVisible(boolean visible){
//        If this dialog is modal...
        if (modal){
            if (visible){
//                ...it uses execute to show the dialog.
                this.xDialog.execute();
            }
            else{
//                ...it uses endExecute to hide the dialog.
                this.xDialog.endExecute();
            }
        }
//        If this dialog is not modal...
        else{
//            ...it uses the setVisible method from the xWindow object.
            this.xWindow.setVisible(visible);
        }
    }

Thanks.

Reply via email to