[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] FillLayout problem on Mac under 3.1RC1

You have assigned a layout data that is not FillData to one of the 
children in your composite.   Children of a Composite with FillLayout 
should not have any layout data set on them.





"Martin, Stephen" <Stephen.Martin@xxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
06/06/2005 09:51 AM
Please respond to
"Eclipse Platform SWT component developers list."


To
"'platform-swt-dev@xxxxxxxxxxx'" <platform-swt-dev@xxxxxxxxxxx>
cc

Subject
[platform-swt-dev] FillLayout problem on Mac under 3.1RC1






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?
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev