Composite topContainer = new Composite( this, SWT.NONE ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); topContainer.setLayoutData( data ); topContainer.setLayout( new GridLayout( 2, false ) ); new Label( topContainer, SWT.NONE ).setText( LABEL_FORMAT_DATE_TIME_PAGE ); typeChoicer = new Combo( topContainer, SWT.READ_ONLY ); data = new GridData( GridData.FILL_HORIZONTAL ); typeChoicer.setLayoutData( data ); typeChoicer.addSelectionListener( new SelectionAdapter( ) {
if ( pageAlignment == PAGE_ALIGN_HORIZONTAL ) { createContentsHorizontally( ); } else { createContentsVirtically( ); }
	protected void createContents( )	{		setLayout( UIUtil.createGridLayoutWithoutMargin( ) );		initChoiceArray( );		getFormatTypes( );		Composite topContainer = new Composite( this, SWT.NONE );		GridData data = new GridData( GridData.FILL_HORIZONTAL );		topContainer.setLayoutData( data );		topContainer.setLayout( new GridLayout( 2, false ) );		new Label( topContainer, SWT.NONE ).setText( LABEL_FORMAT_DATE_TIME_PAGE );		typeChoicer = new Combo( topContainer, SWT.READ_ONLY );		data = new GridData( GridData.FILL_HORIZONTAL );		typeChoicer.setLayoutData( data );		typeChoicer.addSelectionListener( new SelectionAdapter( ) {			public void widgetSelected( SelectionEvent e )			{				reLayoutSubPages( );				updatePreview( );			}		} );		typeChoicer.setItems( getFormatTypes( ) );		typeChoicer.select( 0 );		infoComp = new Composite( this, SWT.NONE );		infoComp.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		infoComp.setLayout( new StackLayout( ) );		createInfoPages( infoComp );		setInput( null, null );		setPreviewText( new Date( ).toString( ) );	}