public void saveAs()
    {
        if(_isOSX || ostype == ostype.Linux || ostype == ostype.Other)
        {
            saveAs_OSX_Nix();
            saveFile(curFile);
        }
        else /* Windows */
        {
            JFileChooser fc = new JFileChooser();
            if(curFile != null)
                fc.setSelectedFile(new File(curFile));
            else
                fc.setSelectedFile(new File("Untitled.txt"));
            fc.setDialogTitle("Save Text File");
            fc.setFileFilter(new FileNameExtensionFilter("Plain Text Files", "txt"));
            int returnval = fc.showSaveDialog(this);
            if(returnval == 0)
            {
                curFile = fc.getSelectedFile().getAbsolutePath();
                if(!curFile.endsWith(".txt"))
                    curFile = curFile + ".txt";
                hasChanges = false;
                hasSavedToFile = true;
                saveFile(curFile);
            }
        }
    }