private void acceptButtonInsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_acceptButtonInsertActionPerformed
        boolean error = false;
        String errorString = "";
        Object[] what = new Object[7];
        what[0] = enabledConnectionInsert.isSelected();
        if (!userDataInsert.getText().equalsIgnoreCase(""))
            what[1] = userDataInsert.getText();
        else {
            error = true;
            errorString += "No user specified.\n";
        }
        
        if (!passDataInsert.getText().equalsIgnoreCase(""))
            what[2] = passDataInsert.getText();
        else {
            error = true;
            errorString += "No pass specified.\n";
        }

        what[3] = connectionDataInsert.getText();
        ArrayList fieldInsert = new ArrayList();
        ArrayList columnsInsert = new ArrayList();
        int filas = fieldsInsertTable.getRowCount();
        for (int i = 0; i < filas; i++) {
            fieldInsert.add((String)fieldsInsertTable.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Fields field is missing.\n";
        }
        what[4] = fieldInsert;
        filas = tableColumnsInsert.getRowCount();
        for (int i = 0; i < filas; i++) {
            columnsInsert.add((String)tableColumnsInsert.getValueAt(i, 0));
        }
        if (filas == 0) {
            error = true;
            errorString += "Columns field is missing.\n";
        }
        what[6] = columnsInsert;
        what[5] = tableDataInsert.getText();
        if (tableDataInsert.getText().equalsIgnoreCase("")) {
            error = true;
            errorString += "Table field is missing.\n";
        }
        if (!error) {
        Controller.controller(Controller.INSERTBD, what);
        this.dispose();
        } else {
            JOptionPane op = new JOptionPane();
            int messagetype = JOptionPane.ERROR_MESSAGE; //JOptionPane.INFORMATION_MESSAGE
            op.showMessageDialog(this, errorString, "[ERROR] Some fields are not missing", messagetype);
        }
    }//GEN-LAST:event_acceptButtonInsertActionPerformed