public void saveAsApplet() {
		Frame frame = JOptionPane.getFrameForComponent(this);
		fileChooser.setAcceptAllFileFilterUsed(false);
		fileChooser.addChoosableFileFilter(FileFilterFactory.getFilter("html"));
		fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
		String s = Modeler.getInternationalText("SavePageAsHTML");
		fileChooser.setDialogTitle(s != null ? s : "Save as an applet");
		fileChooser.setApproveButtonMnemonic('S');
		String latestPath = fileChooser.getLastVisitedPath();
		if (latestPath != null)
			fileChooser.setCurrentDirectory(new File(latestPath));
		fileChooser.setAccessory(null);
		String filename = FileUtilities.getFileName(pageAddress);
		fileChooser.setSelectedFile(new File(FileUtilities.changeExtension(filename, "html")));
		if (fileChooser.showSaveDialog(frame) == JFileChooser.APPROVE_OPTION) {
			filename = FileUtilities.fileNameAutoExtend(FileFilterFactory.getFilter("html"), fileChooser.getSelectedFile());
			File file = new File(filename);
			if (file.exists()) {
				s = Modeler.getInternationalText("FileExists");
				String s1 = Modeler.getInternationalText("File");
				String s2 = Modeler.getInternationalText("Overwrite");
				String s3 = Modeler.getInternationalText("Exists");
				if (JOptionPane.showConfirmDialog(frame, (s1 != null ? s1 : "File") + " " + file.getName() + " " + (s3 != null ? s3 : "exists") + ", " + (s2 != null ? s2 : "overwrite") + "?", s != null ? s : "File exists", JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) {
					fileChooser.resetChoosableFileFilters();
					return;
				}
			}
			new AppletConverter(this).write(file);
			fileChooser.rememberPath(fileChooser.getCurrentDirectory().toString());
		}
		fileChooser.resetChoosableFileFilters();
	}