private void eliminarActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_eliminarActionPerformed try { ejc.destroy(Integer.parseInt(identificacion.getText())); JOptionPane.showMessageDialog( this, "La Empleado " + identificacion.getText() + " Fue eliminada"); } catch (IllegalOrphanException ex) { JOptionPane.showMessageDialog(this, ex.getMessage()); } catch (NonexistentEntityException ex) { JOptionPane.showMessageDialog(this, ex.getMessage()); } } // GEN-LAST:event_eliminarActionPerformed