private void aceptSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aceptSelectActionPerformed
        boolean error = false;
        String errorString = "";
        Object[] what = new Object[7];
        what[0] = conectionBoolean.isSelected();
        if (!userSelectData.getText().equalsIgnoreCase(""))
            what[1] = userSelectData.getText();
        else {
            error = true;
            errorString += "No user specified.\n";
        }
        if (!passSelectData.getText().equalsIgnoreCase(""))
            what[2] = passSelectData.getText();
        else {
            error = true;
            errorString += "No password specified.\n";
        }
        what[3] = conectionEnabledSelectData.getText();
        ArrayList resultadoSelect = new ArrayList();
        ArrayList tablaSelect = new ArrayList();
        int filas = tablaSelectResult.getRowCount();
        for (int i = 0; i < filas; i++) {
            resultadoSelect.add((String)tablaSelectResult.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Result field is missing.\n";
        }
        what[4] = resultadoSelect;
        filas = tablaSelectTable.getRowCount();
        for (int i = 0; i < filas; i++) {
            tablaSelect.add((String)tablaSelectTable.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Table field is missing.\n";
        }
        what[5] = tablaSelect;
        what[6] = conditionSelectConditionText.getText();
        if (conditionSelectConditionText.getText().equalsIgnoreCase("")) {
            error = true;
            errorString += "Condition field is missing.\n";
        }
        if (!error) {
        Controller.controller(Controller.SELECTBD, 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_aceptSelectActionPerformed