private void saveFile() {
        chooser.setFileFilter(fef);
        chooser.setCurrentDirectory(currentLocation);
        int r_Value = chooser.showSaveDialog(this);
        BufferedWriter bw;
        if (r_Value == JFileChooser.APPROVE_OPTION) {
            try {
                if (fileName == null || fileName.isEmpty()) {
                    fileName = chooser.getName();
                    setTitle(TITLE + ": " + fileName);
                    currentFile = chooser.getSelectedFile();
                }
                String fixedLocation = chooser.getSelectedFile().getAbsolutePath();

                if (!fixedLocation.endsWith(".html")) {
                    fixedLocation += ".html";
                    System.out.println(fixedLocation);
                }
                bw = new BufferedWriter(new FileWriter(fixedLocation));
                String[] lines = jTextPane_Source.getText().split("\\n");

                for (int i = 0; i < lines.length; i++) {
                    bw.write(lines[i]);
                }
                bw.close();
            } catch (Exception e) {
            }
        }
    }