columnEditor = new SimpleSpinner( innerPane, 0 ); columnEditor.setText( String.valueOf( columnCount ) );
columnEditor = new Spinner( innerPane, SWT.BORDER ); columnEditor.setMinimum( 1 ); columnEditor.setMaximum( Integer.MAX_VALUE ); columnEditor.setIncrement( 1 ); columnEditor.setSelection( columnCount );
	protected Control createDialogArea( Composite parent )	{		loadPreference( );		Composite composite = (Composite) super.createDialogArea( parent );		( (GridLayout) composite.getLayout( ) ).numColumns = 2;		new Label( composite, SWT.NONE ).setText( insertTable ? MSG_TABLE_SIZE				: MSG_GRID_SIZE );		Label sp = new Label( composite, SWT.SEPARATOR | SWT.HORIZONTAL );		sp.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		Composite innerPane = new Composite( composite, SWT.NONE );		GridData gdata = new GridData( GridData.FILL_BOTH );		gdata.horizontalSpan = 2;		innerPane.setLayoutData( gdata );		GridLayout glayout = new GridLayout( 2, false );		glayout.marginWidth = 10;		innerPane.setLayout( glayout );		new Label( innerPane, SWT.NONE ).setText( MSG_NUMBER_OF_COLUMNS );		columnEditor = new SimpleSpinner( innerPane, 0 );		columnEditor.setText( String.valueOf( columnCount ) );		columnEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		new Label( innerPane, SWT.NONE ).setText( insertTable ? MSG_NUMBER_OF_TABLE_ROWS				: MSG_NUMBER_OF_GRID_ROWS );		rowEditor = new SimpleSpinner( innerPane, 0 );		rowEditor.setText( String.valueOf( rowCount ) );		rowEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		if ( insertTable )		{			new Label( innerPane, SWT.NONE ).setText( MSG_DATA_SET );			dataSetCombo = new Combo( innerPane, SWT.BORDER					| SWT.SINGLE					| SWT.READ_ONLY );			dataSetCombo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );			String[] dataSets = ChoiceSetFactory.getDataSets( );			String[] newList = new String[dataSets.length + 1];			System.arraycopy( dataSets, 0, newList, 1, dataSets.length );			newList[0] = NONE;			dataSetCombo.setItems( newList );			dataSetCombo.select( 0 );		}		else		{			Label lb = new Label( composite, SWT.NONE );			gdata = new GridData( GridData.FILL_HORIZONTAL );			gdata.horizontalSpan = 2;			lb.setLayoutData( gdata );		}		chkbox = new Button( composite, SWT.CHECK );		chkbox.setText( insertTable ? MSG_REMEMBER_DIMENSIONS_FOR_NEW_TABLES				: MSG_REMEMBER_DIMENSIONS_FOR_NEW_GRIDS );		gdata = new GridData( GridData.FILL_HORIZONTAL );		gdata.horizontalSpan = 2;		chkbox.setLayoutData( gdata );		if ( insertTable )		{			UIUtil.bindHelp( parent, IHelpContextIds.TABLE_OPTION_DIALOG_ID );		}		else		{			UIUtil.bindHelp( parent, IHelpContextIds.Grid_OPTION_DIALOG_ID );		}		return composite;	}