private void jButton3ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton3ActionPerformed conexioninicio ci = new conexioninicio(); Connection con = null; Connection con1 = null; try { Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection(ci.getURl(), ci.getLogin(), ci.getPassword()); con1 = DriverManager.getConnection(ci.getURl(), ci.getLogin(), ci.getPassword()); Statement stmt = con.createStatement(); Statement stmts = con1.createStatement(); String cadenasql = "UPDATE persona SET nombre=" + "'" + nombre.getText().toUpperCase() + "'" + "," + "apPat=" + "'" + apPat.getText().toUpperCase() + "'" + "," + "apMat=" + "'" + apMat.getText().toUpperCase() + "'" + "," + "calle=" + "'" + calle.getText().toUpperCase() + "'" + "," + "colonia=" + "'" + colonia.getText().toUpperCase() + "'" + "," + "numExt=" + num.getText() + "," + "municipio=" + "'" + municipio.getText().toUpperCase() + "'" + "," + "numTel=" + "'" + telefono.getText() + "'" + "," + "cp=" + "'" + cp.getText() + "'," + "curp=" + "'" + curp.getText().toUpperCase() + "'," + "idestado=" + "'" + jComboBox1.getSelectedIndex() + "'," + "email=" + "'" + email.getText() + "' where curp = '" + curp.getText() + "'"; String cadenasql2 = "UPDATE admin SET idadmon=" + "'" + idamin.getText() + "',curp=" + "'" + curp.getText().toUpperCase() + "' where curp = '" + curp.getText() + "'"; stmt.executeUpdate(cadenasql); stmts.executeUpdate(cadenasql2); // System.out.print("Se han borrado todos los datos"); JOptionPane.showMessageDialog(this, "ActualizaCION Exitosa"); } catch (Exception e) { System.out.println(e.getMessage()); } // TODO add your handling code here: } // GEN-LAST:event_jButton3ActionPerformed