private void clientCrudMenuItemActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_clientCrudMenuItemActionPerformed
   // TODO add your handling code here:
   ClientCrudWindow clientCrud =
       new ClientCrudWindow(
           this, true, CrudWindowType.CREATE, PersistenceUnit.getEntityManagerFactory());
   clientCrud.setVisible(true);
   clientCrud.dispose();
 } // GEN-LAST:event_clientCrudMenuItemActionPerformed
 private void clientEditButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_clientEditButtonActionPerformed
   // TODO add your handling code here:
   Client client = (Client) clienteTableFrame.getSelectRow();
   if (client != null) {
     clientCrudWindow.setClient(client);
     clientCrudWindow.setWindowsType(CrudWindowType.UPDATE);
     clientCrudWindow.setVisible(true);
   } else {
     JOptionPane.showMessageDialog(this, "Não há um cliente selecionado");
   }
 } // GEN-LAST:event_clientEditButtonActionPerformed
 private void clientCreateButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_clientCreateButtonActionPerformed
   // TODO add your handling code here:
   clientCrudWindow.setWindowsType(CrudWindowType.CREATE);
   clientCrudWindow.setVisible(true);
 } // GEN-LAST:event_clientCreateButtonActionPerformed