Project: SWT
Bug 72343 Shell doesn't maximize
Reported: 2004-08-20 09:21:36 | Status: resolved fixed

Calling shell.setMaximized(true) doesn't maximize the shell on Mac OS X 10.3 (it does so on Windows XP). The following snipped demonstrates this: import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class MaximizeBug { public static void main(String[] args) { Display display = Display.getDefault(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setSize(100,100); shell.open(); // this method fails shell.setMaximized(true); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java