private void fillTextFields(){
        MainFrame mainFrame = MainFrame.getInstance();

        words = mainFrame.getList();
        int index = mainFrame.getIndex();
        if (words != null) {
            Word currentWord = words.get(index);
            noteEditorFrame.setOldValue(currentWord.getEWord());
            noteEditorFrame.setOldTranslation(currentWord.getRWord());
            noteEditorFrame.setNewValue(currentWord.getEWord());
            noteEditorFrame.setNewTranslation(currentWord.getRWord());
            noteEditorFrame.setVisible(true);
        } else {
            noteEditorFrame = null;
            mainFrame.showMessage("No any dictionary has been loaded!", "Edit note",JOptionPane.ERROR_MESSAGE);

        }
    }