I use a FormLayout manager. When I try to edit the JDialog with Jigloo in Eclipse the following Error appears:
*** warning - error making class new FormLayout("pref, 30dlu, left:pref:grow, 4dlu, right:pref","pref, 10dlu, top:pref, 10dlu, pref, 10dlu, pref, 12dlu, pref"): java.lang.reflect.InvocationTargetException
*** warning - error making class new FormLayout("pref, 30dlu, left:pref:grow, 4dlu, right:pref","pref, 10dlu, top:pref, 10dlu, pref, 10dlu, pref, 12dlu, pref"): java.lang.reflect.InvocationTargetException
I do not unterstand why this error is thrown. When I compile the dialog class and start my application the swing elements are layouted as defined. Below are my java statements:
if (contentPanel == null) {
contentPanel = new JPanel();
FormLayout contentPanelLayout = new FormLayout(
"pref, 30dlu, left:pref:grow, 4dlu, right:pref",
"pref, 10dlu, top:pref, 10dlu, pref, 10dlu, pref, 12dlu, pref"
);
contentPanel.setLayout(contentPanelLayout);
CellConstraints cc = new CellConstraints();
contentPanel.add(getBezeichnungLbl(), cc.xy( 1, 1 ) );
contentPanel.add(getBezeichnungField(), cc.xyw( 3, 1, 3 ) );
contentPanel.add(getBemerkungenLbl(), cc.xy( 1, 3) );
contentPanel.add(getBemerkungenScp(), cc.xyw( 3, 3, 3 ) );
contentPanel.add(getErstellungsdatumLbl(), cc.xy( 1, 5 ) );
contentPanel.add(getErstellungsdatumField(), cc.xyw( 3, 5, 3 ) );
contentPanel.add(getErstellerLbl(), cc.xy( 1, 7 ) );
contentPanel.add(getErstellerField(), cc.xyw( 3, 7, 3 ) );
contentPanel.add(getOkBtn(), cc.xy( 3, 9 ) );
contentPanel.add(getAbbrechenBtn(), cc.xy( 5, 9 ) );
}
return contentPanel;
|