import org.eclipse.swt.layout.FillLayout; | |
import org.eclipse.swt.widgets.Display; | |
import org.eclipse.swt.widgets.Shell; | |
/** | |
* Description: | |
* Steps to reproduce: | |
* Expected results: | |
* Actual results: | |
*/ | |
public class BugTemplate { | |
public static void main (String [] args) { | |
Display display = new Display (); | |
final Shell shell = new Shell (display); | |
shell.setLayout(new FillLayout()); | |
shell.open (); | |
while (!shell.isDisposed ()) { | |
if (!display.readAndDispatch ()) display.sleep (); | |
} | |
display.dispose (); | |
} | |
} |