public class ShellWithoutTitleBar { public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display, SWT.NO_TRIM | SWT.ON_TOP);
shell.open();
// Set up the event loop. while (!shell.isDisposed()) { if (!display.readAndDispatch()) {
// If no more entries in event queue
display.sleep();
}
}
display.dispose();
}