private void btCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCheckActionPerformed
        String labelEng = "";
        ArrayList<String> answerEngList = new ArrayList();
        String[] answerEng = null;
        for (Word w : dbConn.getAllWords()) {
            if (tempWordId == w.getHunId()) {
                String tempHun = w.getHunWord();
                answerEng = w.getEngWord().toArray(new String[w.getEngWord().size()]);
            }
        }

        boolean contains = false;
        if (!(tfEngWord.getText()).equals("")) {
            String tempEng[] = tfEngWord.getText().split(",");
            Collections.addAll(answerEngList, answerEng);
            for (int i = 0; i < tempEng.length; i++) {
                if (answerEngList.contains(tempEng[i])) {
                    contains = true;
                } else {
                    contains = false;
                }
            }

            if (contains) {
                lbRate.setText("Gratulálok eltaláltad");
                currentUser.setCorrectAnswer();
                statistics.setCorrectAnswer();
                sessionCorrectAnswer++;
                lbIcon.setIcon(rightIcon);
            } else {
                lbRate.setText("Sajnos most nem sikerült");
                statistics.setWrongAnswer();
                currentUser.setWrongAnswer();
                sessionWrongAnswer++;
                lbIcon.setIcon(wrongIcon);
            };
            currentUser.setQuestionCount();
            currentUser.setRatio();
            statistics.setQuestionCount();
            statistics.setRatio();
            sessionQuestionCount++;
            sessionRatio = ((double)sessionCorrectAnswer/sessionQuestionCount)*100;
            btCheck.setEnabled(false);
            for (int i = 0; i < answerEng.length; i++) {
                labelEng += answerEng[i] + ",";

            }

            lbAnswer.setText(labelEng);
            dbConn.updateUser(currentUser);
            dbConn.updateStatistics(statistics);
            for (Word w : dbConn.getAllWords()) {
                if (tempWordId == w.getHunId()) {
                    stat.setStaticstics(
                            currentUser.getQuestionCount(),
                            currentUser.getCorrectAnswer(),
                            currentUser.getWrongAnswer(),
                            currentUser.getRatio(),
                            statistics.getQuestionCount(),
                            statistics.getCorrectAnswer(),
                            statistics.getWrongAnswer(),
                            statistics.getRatio(),
                            sessionQuestionCount,
                            sessionCorrectAnswer,
                            sessionWrongAnswer,
                            sessionRatio,
                            w.getHunWord(),
                            answerEng);
                    Point p = this.getLocation();
                    stat.setLocation(p);
                    stat.setVisible(true);
                }
            }
        } else {
            JOptionPane.showMessageDialog(this, "Kérlek előszőr írd be a fordítást", "Adj meg egy szót", JOptionPane.PLAIN_MESSAGE);
        }
    }//GEN-LAST:event_btCheckActionPerformed