Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Jigloo GUI Builder for Eclipse" Topics [ Start new "Jigloo GUI Builder for Eclipse" Topic  ]

Cloudgarden Discussion Board  
This topic has 0 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
FormLayout
Author: Tom
12/27/11 03:29 Reply
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;