code: private void removeBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeBtnActionPerformed
          DefaultTableModel model = (DefaultTableModel)rules.getModel();
          int[] rows = rules.getSelectedRows();
          for (int i = 0; i < rows.length; i++) {
              model.removeRow(rows[i] - i);
              scan.removeMatchRule(rows[i] - i);
          }
      }
docs: GEN-LAST:event_addBtnActionPerformed