private void openBrowser() {
        int dialogButton = JOptionPane.YES_NO_OPTION;
        JOptionPane.showConfirmDialog(null, "You need to save to see the Browser?", "Browse", dialogButton);

        if (dialogButton == JOptionPane.YES_OPTION) {
            saveFile();
            if (Desktop.isDesktopSupported()) {
                try {
                    Desktop.getDesktop().browse(currentFile.toURI());
                } catch (IOException ex) {
                    Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }

    }