Community
Participate
Working Groups
Run the following code snippet. If a shell is created, forced active, then disposed, a new shell created and opened, the new shell won't open. (It's created, but not given focus, or drawn on the display). If the old shell isn't forced active or not disposed, the new shell does open. import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class ShellActive { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.forceActive(); shell.dispose(); shell = new Shell(display); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
fixed by bug 80506 > 20041209