MultiFieldPanel multiPanel = new MultiFieldPanel();
multiPanel.addToRow( firstNameField = createTextField( TextProvider.get().contact_window_label_firstname(),
"firstName" ), new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_secondname(), "secondName" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_lastname(), "lastName" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_nickname(), "nickname" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_company(), "company" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_position(), "position" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
formPanel.add( fieldset );
// internet data
fieldset = createFieldSet( TextProvider.get().contact_window_label_internet() );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_email(), "email" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_secondemail(), "email2" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_im(), "im" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_website(), "website" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
formPanel.add( fieldset );
// phone numbers
fieldset = createFieldSet( TextProvider.get().contact_window_label_telecom() );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_privatephone(), "privatePhone" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow(
createTextField( TextProvider.get().contact_window_label_businessphone(), "businessPhone" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_mobilephone(), "mobilePhone" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_pager(), "pager" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
multiPanel = new MultiFieldPanel();
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_privatefax(), "privateFax" ),
new ColumnLayoutData( 0.5 ) );
multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_businessfax(), "businessFax" ),
new ColumnLayoutData( 0.5 ) );
fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
formPanel.add( fieldset );
return formPanel;
}