public FieldList makeSelectedRowCurrent ( ) { FieldList record = null ; int iRow = m_jTableScreen . getSelectedRow ( ) ; if ( iRow != - 1 ) record = m_thinTableModel . makeRowCurrent ( iRow , false ) ; if ( record == null ) { record = this . getFieldList ( ) ; try { record . getTable ( ) . addNew ( ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; // Never. } } return record ; }
Make the currently selected row current or create a newrecord is no current selection .