[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[platform-swt-dev] FillLayout problem on Mac under 3.1RC1
|
- From: "Martin, Stephen" <Stephen.Martin@xxxxxx>
- Date: Mon, 6 Jun 2005 09:51:27 -0400
- Delivered-to: platform-swt-dev@eclipse.org
I'm having a problem
with using the FillLayout. My program crashes with the following
exception
java.lang.ClassCastException
at
org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:141)
at
org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:119)
at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:187)
at
org.eclipse.swt.layout.FormData.computeSize(FormData.java:113)
at
org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318)
at
org.eclipse.swt.layout.FormLayout.computeSize(FormLayout.java:239)
at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:187)
at
org.eclipse.swt.layout.FormData.computeSize(FormData.java:113)
at
org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318)
at
org.eclipse.swt.layout.FormLayout.computeSize(FormLayout.java:239)
at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:187)
at
org.eclipse.swt.layout.FormData.computeSize(FormData.java:113)
at
org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318)
at
org.eclipse.swt.layout.FormLayout.computeSize(FormLayout.java:239)
at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:187)
at
org.eclipse.swt.layout.FormData.computeSize(FormData.java:113)
at
org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:318)
at
org.eclipse.swt.layout.FormLayout.layout(FormLayout.java:284)
at
org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:917)
at
org.eclipse.swt.widgets.Shell.kEventWindowBoundsChanged(Shell.java:874)
at
org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1879)
at
org.eclipse.swt.widgets.Display.windowProc(Display.java:3678)
at org.eclipse.swt.internal.carbon.OS.SetWindowBounds(Native
Method)
at
org.eclipse.swt.widgets.Shell.setBounds(Shell.java:1233)
at
org.eclipse.swt.widgets.Control.setSize(Control.java:2564)
at
gsdict.apps.webster.MainWindow.createContents(MainWindow.java:239)
at
org.eclipse.jface.window.Window.create(Window.java:418)
at
org.eclipse.jface.window.Window.open(Window.java:776)
at
gsdict.apps.webster.MainWindow.main(MainWindow.java:328)
I believe it is
because the FillData is null but can't seem to figure out how
to
get it set. Is this
a bug or am i doing something wrong?