private WFieldSet addFieldSet(final String title, final WFieldSet.FrameType type) {
		final WFieldSet fieldset = new WFieldSet(title);
		fieldset.setFrameType(type);
		fieldset.setMargin(new Margin(null, null, Size.LARGE, null));
		final WFieldLayout layout = new WFieldLayout();
		fieldset.add(layout);
		layout.setLabelWidth(25);
		layout.addField("Street address", new WTextField());
		final WField add2Field = layout.addField("Street address line 2", new WTextField());
		add2Field.getLabel().setHidden(true);
		layout.addField("Suburb", new WTextField());
		layout.addField("State/Territory", new WDropdown(
				new String[]{"", "ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"}));
		//NOTE: this is an Australia-specific post code field. An Australian post code is not a number as they may contain a leading zero.
		final WTextField postcode = new WTextField();
		postcode.setMaxLength(4);
		postcode.setColumns(4);
		postcode.setMinLength(3);
		layout.addField("Postcode", postcode);
		add(fieldset);
		return fieldset;
	}
private WFieldSet addFieldSet ( final String title , final WFieldSet . FrameType type ) { final WFieldSet fieldset = new WFieldSet ( title ) ; fieldset . setFrameType ( type ) ; fieldset . setMargin ( new Margin ( null , null , Size . LARGE , null ) ) ; final WFieldLayout layout = new WFieldLayout ( ) ; fieldset . add ( layout ) ; layout . setLabelWidth ( 25 ) ; layout . addField ( "Street address" , new WTextField ( ) ) ; final WField add2Field = layout . addField ( "Street address line 2" , new WTextField ( ) ) ; add2Field . getLabel ( ) . setHidden ( true ) ; layout . addField ( "Suburb" , new WTextField ( ) ) ; layout . addField ( "State/Territory" , new WDropdown ( new String [ ] { "" , "ACT" , "NSW" , "NT" , "QLD" , "SA" , "TAS" , "VIC" , "WA" } ) ) ; final WTextField postcode = new WTextField ( ) ; postcode . setMaxLength ( 4 ) ; postcode . setColumns ( 4 ) ; postcode . setMinLength ( 3 ) ; layout . addField ( "Postcode" , postcode ) ; add ( fieldset ) ; return fieldset ; }
Creates a WFieldSet with content and a given FrameType.

@param title The title to give to the WFieldSet.
@param type The decorative model of the WFieldSet
@return a WFieldSet with form control content.