예제 #1
0
 private void BTSalvarActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_BTSalvarActionPerformed
   if (CBEstado.getSelectedIndex() == -1) {
     JOptionPane.showMessageDialog(null, "Informe o estado!", "Alerta", JOptionPane.ERROR_MESSAGE);
     return;
   }
   if (TFcodCli.getText().isEmpty()) {
     SalvarCliente();
   } else {
     AlterarCliente();
   }
 } // GEN-LAST:event_BTSalvarActionPerformed