When I try to run the code below on Windows XP, the resulting shell has a
border, and the close button is visible.
When I run the same code on SUSE Linux Enterprise Desktop 10 SP1, I get a
borderless shell, without the close button. Anyone have any idea as to
what could be causing this? Is this a known issue, and if so, is there a
workaround?
public class ShellTest {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display, SWT.DIALOG_TRIM | SWT.ON_TOP |
SWT.MODELESS | SWT.TOOL | SWT.RESIZE );
shell.setLayout(new GridLayout(2, false));
shell.setSize(400, 400);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}