// backgroundShell.setMaximized(true);
backgroundShell.setAlpha(128);
backgroundShell.setBackground(getDisplay().getSystemColor(SWT.COLOR_BLACK));
- backgroundShell.open();
foregoundShell = new Shell(backgroundShell, SWT.NO_TRIM | SWT.ON_TOP);
if (title != null)
setTitle(title);
});
+ backgroundShell.open();
foregoundShell.open();
// after the foreground shell has been opened
backgroundShell.addFocusListener(new FocusListener() {
public void setTitle(String title) {
this.title = title;
- if (getForegoundShell() != null)
+ if (title != null && getForegoundShell() != null)
getForegoundShell().setText(title);
}