public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setSize(250,10); Rectangle bounds = shell.getBounds(); int height = bounds.height - 10; shell.dispose(); shell = new Shell(display, SWT.NO_TRIM); shell.setSize(200,height); shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); }