/** Create contents of the window. */ protected void createContents() { shell = new Shell(SWT.NO_TRIM | SWT.BORDER); shell.setSize(850, 560); shell.setLayout(new FillLayout(SWT.HORIZONTAL)); LayoutUtil.centerShell(Display.getCurrent(), shell); Composite composite = new Composite(shell, SWT.NONE); composite.setBackgroundImage(SWTResourceManager.getImage(getClass(), "/res/bg.jpg")); composite.setBackgroundMode(SWT.INHERIT_FORCE); RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL); rowLayout.marginTop = 0; rowLayout.marginRight = 0; rowLayout.marginLeft = 0; rowLayout.spacing = 5; composite.setLayout(rowLayout); winTitle = createWinTitle(composite); winToolbar = createWinToolBar(composite); Composite winMainContent = new Composite(composite, SWT.NONE); winMainContent.setLayout(new StackLayout()); winMainContent.setLayoutData(new RowData(850, 407)); winStatusbar = createWinStatusBar(composite); addShellListener(winTitle, winToolbar, winStatusbar); }