Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-Modal JFace Dialog?

Tags:

java

swt

jface

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 - is this a shortcoming of SWT, or am I just misusing the widget?

TIA

like image 526
javamonkey79 Avatar asked Apr 26 '11 21:04

javamonkey79


2 Answers

Using

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

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

like image 114
Bala R Avatar answered Nov 08 '22 17:11

Bala R


@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..

like image 11
Abdul Rehman Avatar answered Nov 08 '22 16:11

Abdul Rehman