private void editFile(File file) {
        try {
            Runtime.getRuntime().exec(DEFAULT_EDITOR + " " + file.getAbsolutePath());
        } catch (IOException e){
            noteEditorFrame.showMessage("I/O Error", "Open editor error", JOptionPane.ERROR_MESSAGE);
        }

    }