Non-Modal JFace Dialog?

后端 未结 2 734
南旧
南旧 2021-01-11 11:01

Simply put: Is there any way to create non-modal JFace dialog? I\'ve tried calling setShellStyle to no avail. If I remember right this isn\'t a problem in swing

相关标签:
2条回答
  • 2021-01-11 11:29

    Using

    setShellStyle(SWT.CLOSE | SWT.MODELESS | SWT.BORDER | SWT.TITLE);
    setBlockOnOpen(false);
    

    seems to be the practice. This doesn't work for you?

    0 讨论(0)
  • 2021-01-11 11:39
    @Override
    protected void setShellStyle(int newShellStyle) {           
        super.setShellStyle(SWT.CLOSE | SWT.MODELESS| SWT.BORDER | SWT.TITLE);
        setBlockOnOpen(false);
    }
    

    The above code will solve the problem..

    0 讨论(0)
提交回复
热议问题