public MainWindow(Composite parent, int style) { super(parent, style); initGUI(); setPreferences(); waitCursor = getDisplay().getSystemCursor(SWT.CURSOR_WAIT); defaultCursor = getDisplay().getSystemCursor(SWT.CURSOR_ARROW); clientArea.setFocus(); }