question: public void addSelectionColumn ( GridField mField ) { log . config ( mField . getHeader ( ) ) ; int displayLength = mField . getDisplayLength ( ) ; if ( displayLength <= 0 || displayLength > FIELDLENGTH ) mField . setDisplayLength ( FIELDLENGTH ) ; else displayLength = 0 ; WEditor editor = null ; Label label = null ; Row panel = new Row ( ) ; contentSimpleRows . appendChild ( panel ) ; if ( mField . isRange ( ) ) { Hbox box = new Hbox ( ) ; editor = WebEditorFactory . getEditor ( mField , false ) ; label = editor . getLabel ( ) ; editor . setMandatory ( false ) ; editor . setReadWrite ( true ) ; editor . dynamicDisplay ( ) ; Component fieldLabel = editor . getComponent ( ) ; box . appendChild ( editor . getComponent ( ) ) ; rangeFirstEditor . add ( mField . getColumnName ( ) ) ; WEditor toRangeEditor = WebEditorFactory . getEditor ( mField , false ) ; toRangeEditor . setMandatory ( false ) ; toRangeEditor . setReadWrite ( true ) ; toRangeEditor . dynamicDisplay ( ) ; m_sEditors2 . add ( toRangeEditor ) ; Label separator = new Label ( " - " ) ; box . appendChild ( separator ) ; Component fieldLabel1 = toRangeEditor . getComponent ( ) ; box . appendChild ( toRangeEditor . getComponent ( ) ) ; if ( displayLength > 0 ) mField . setDisplayLength ( displayLength ) ; if ( isTwoColumns ) { if ( ! isPair ) panel = new Row ( ) ; } else panel = new Row ( ) ; panel . appendChild ( LayoutUtils . makeRightAlign ( label ) ) ; panel . appendChild ( box ) ; fieldLabel . addEventListener ( Events . ON_OK , this ) ; fieldLabel1 . addEventListener ( Events . ON_OK , this ) ; } else { editor = WebEditorFactory . getEditor ( mField , false ) ; label = editor . getLabel ( ) ; editor . setMandatory ( false ) ; editor . setReadWrite ( true ) ; editor . dynamicDisplay ( ) ; Component fieldLabel = editor . getComponent ( ) ; if ( displayLength > 0 ) mField . setDisplayLength ( displayLength ) ; panel . appendChild ( LayoutUtils . makeRightAlign ( label ) ) ; panel . appendChild ( fieldLabel ) ; fieldLabel . addEventListener ( Events . ON_OK , this ) ; m_sEditors2 . add ( null ) ; } m_sEditors . add ( editor ) ; }
target:  Add Selection Column to first Tab