Combo cbDimension = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );
cbDimension = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );
	public static void main( String[] args )	{		SwtChartViewerSelector scv = new SwtChartViewerSelector( );		GridLayout gl = new GridLayout( );		// gl.numColumns = 1;		Display d = Display.getDefault( );		Shell sh = new Shell( d );		sh.setSize( 800, 600 );		sh.setLayout( gl );		sh.setText( scv.getClass( ).getName( ) + " [device="//$NON-NLS-1$				+ scv.idr.getClass( ).getName( ) + "]" );//$NON-NLS-1$		GridData gd = new GridData( GridData.FILL_BOTH );		Canvas cCenter = new Canvas( sh, SWT.NONE );		cCenter.setLayoutData( gd );		cCenter.addPaintListener( scv );		Composite cBottom = new Composite( sh, SWT.NONE );		gd = new GridData( GridData.FILL_HORIZONTAL );		cBottom.setLayoutData( gd );		cBottom.setLayout( new RowLayout( ) );		Label la = new Label( cBottom, SWT.NONE );		la.setText( "Choose: " );//$NON-NLS-1$		Combo cbType = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );		cbType.add( "Bar Chart" );//$NON-NLS-1$		cbType.add( "Bar Chart(2 Series)" );//$NON-NLS-1$		cbType.add( "Pie Chart" );//$NON-NLS-1$		cbType.add( "Pie Chart(4 Series)" );//$NON-NLS-1$		cbType.add( "Line Chart" );//$NON-NLS-1$		cbType.add( "Bar/Line Stacked Chart" );//$NON-NLS-1$		cbType.add( "Scatter Chart" );//$NON-NLS-1$		cbType.add( "Stock Chart" );//$NON-NLS-1$		cbType.add( "Area Chart" );//$NON-NLS-1$		cbType.select( 0 );		Combo cbDimension = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );		cbDimension.add( "2D" );//$NON-NLS-1$		cbDimension.add( "2D with Depth" );//$NON-NLS-1$		cbDimension.select( 0 );		Button cbTransposed = new Button( cBottom, SWT.CHECK );		cbTransposed.setText( "Transposed" );//$NON-NLS-1$		Button cbPercent = new Button( cBottom, SWT.CHECK );		cbPercent.setText( "Percent" );//$NON-NLS-1$		Button cbLogarithmic = new Button( cBottom, SWT.CHECK );		cbLogarithmic.setText( "Logarithmic" );//$NON-NLS-1$		Button btn = new Button( cBottom, SWT.NONE );		btn.setText( "Update" );//$NON-NLS-1$		btn.addSelectionListener( scv );		scv.cb = cbType;		scv.ca = cCenter;		scv.cbDimension = cbDimension;		scv.cbTransposed = cbTransposed;		scv.cbPercent = cbPercent;		scv.cbLogarithmic = cbLogarithmic;		sh.open( );		while ( !sh.isDisposed( ) )		{			if ( !d.readAndDispatch( ) )			{				d.sleep( );			}		}	}