/** * DOCUMENT ME! * * @param evt DOCUMENT ME! */ private void cmdDeleteRowActionPerformed( final java.awt.event.ActionEvent evt) { // GEN-FIRST:event_cmdDeleteRowActionPerformed if (tblMappings.isEditing()) { // GEN-LAST:event_cmdDeleteRowActionPerformed tblMappings.getCellEditor().stopCellEditing(); } getMappingModel().addRow(new Mapping()); }
/** stop cell editor. */ public void stopEditing() { if (tblMappings.isEditing()) { tblMappings.getCellEditor().stopCellEditing(); } }