Exemplo n.º 1
0
 private void m_menuAddItemActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_m_menuAddItemActionPerformed
     { // GEN-HEADEREND:event_m_menuAddItemActionPerformed
   // Add your handling code here:
   SkeletonProperty prop = new SkeletonProperty();
   int selr = m_table.getSelectedRow();
   if (selr >= 0) m_model.add(prop, selr);
   else m_model.add(prop);
 } // GEN-LAST:event_m_menuAddItemActionPerformed
Exemplo n.º 2
0
 private void m_menuRemoveItemActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_m_menuRemoveItemActionPerformed
     { // GEN-HEADEREND:event_m_menuRemoveItemActionPerformed
   // Add your handling code here:
   int selr = m_table.getSelectedRow();
   if (selr != -1) {
     m_model.removeRow(selr);
   }
 } // GEN-LAST:event_m_menuRemoveItemActionPerformed