public void addScreenLabels ( Container parent ) { GridBagConstraints c = this . getGBConstraints ( ) ; c . weightx = 0.0 ; // Minimum width to hold labels c . anchor = GridBagConstraints . NORTHEAST ; // Labels right justified c . gridx = 0 ; // Column 0 c . gridy = GridBagConstraints . RELATIVE ; // Bump Row each time for ( int iIndex = 0 ; ; iIndex ++ ) { Converter converter = this . getFieldForScreen ( iIndex ) ; if ( converter == SKIP_THIS_FIELD ) continue ; if ( converter == null ) break ; this . addScreenLabel ( parent , converter ) ; } }
Add the description labels to the first column of the grid .