private void acceptButtonUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acceptButtonUpdateActionPerformed
        boolean error = false;
        String errorString = "";
        Object[] what = new Object[7];
        what[0] = enabledConectionUpdate.isSelected();
        if (!userUpdateData.getText().equalsIgnoreCase(""))
            what[1] = userUpdateData.getText();
        else {
            error = true;
            errorString += "No user specified.\n";
        }
        
        if (!passUpdateData.getText().equalsIgnoreCase(""))
            what[2] = passUpdateData.getText();
        else {
            error = true;
            errorString += "No pass specified.\n";
        }
        
        what[3] = conectionUpdateData.getText();
        ArrayList tablaUpdate = new ArrayList();
        ArrayList fieldsUpdate = new ArrayList();
        int filas = tableUpdateTable.getRowCount();
        for (int i = 0; i < filas; i++) {
            tablaUpdate.add((String)tableUpdateTable.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Table field is missing.\n";
        }
        what[4] = tablaUpdate;
        filas = tableFieldsUpdateFields.getRowCount();
        for (int i = 0; i < filas; i++) {
            fieldsUpdate.add((String)tableFieldsUpdateFields.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Field field is missing.\n";
        }
        what[5] = fieldsUpdate;
        what[6] = conditionTextAreaUpdateCondition.getText();
        if (conditionTextAreaUpdateCondition.getText().equalsIgnoreCase("")) {
            error = true;
            errorString += "Condition field is missing.\n";
        }
        if (!error) {
        Controller.controller(Controller.UPDATEBD, what);
        this.dispose();
        } else {
            JOptionPane op = new JOptionPane();
            int messagetype = JOptionPane.ERROR_MESSAGE; //JOptionPane.INFORMATION_MESSAGE
            op.showMessageDialog(this, errorString, "[ERROR] Some fields are missing", messagetype);
        }
    }//GEN-LAST:event_acceptButtonUpdateActionPerformed