public void show() {        
        save.doModal();
        if (save.isSet() && !exists()) {
            new DocumentWriter(save.getPath(), mw.getContent());
            mw.setFileStatus(false);
            return;
        }
        switch(save.getOption()){
            case JOptionPane.NO_OPTION:
            case JOptionPane.CANCEL_OPTION:
            case JOptionPane.CLOSED_OPTION:
                return;
        }
        switch (ConfirmPane.doModal(mw, "Existing file",
                "The file already exist. \nDo you want to overwrite? ")) {
            case JOptionPane.YES_OPTION:
                new DocumentWriter(mw.getCurrentFilePath(), mw.getContent());
                mw.setFileStatus(false);
                return;
            case JOptionPane.NO_OPTION:
                show();
        }
    }