Community
Participate
Working Groups
Consider the program below. - Under Windows, I get all the expected trimmings - Under Linux, I get no trimmings, i.e. there is no close, title bar or minimize button Happens w/SWT 2.1(2133) under RedHat 8.0 import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StackLayout; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Shell; public class Application { Display display; Shell testImage; Shell gui; private void runGUI(Display display) { gui = new Shell(display, SWT.ON_TOP|SWT.CLOSE|SWT.TITLE|SWT.MIN); gui.setText("lkasjdf"); gui.setLayout(new GridLayout()); this.display = display; testImage = new Shell(display, SWT.NONE); testImage.setMaximized(true); testImage.open(); gui.pack(); gui.open(); for (;;) { if (!display.readAndDispatch()) display.sleep(); if (testImage.isDisposed() || gui.isDisposed()) break; } testImage.dispose(); gui.dispose(); display.dispose(); } private StackLayout stackLayout; private Group patternsGroup; public static void main(String[] args) { /* returns when the application quits. */ Display display; display = new Display(); Application app = new Application (); app.runGUI(display); display.dispose(); } }
*** This bug has been marked as a duplicate of 23980 ***