private void programmerSaveButton(java.awt.event.ActionEvent evt)
    {
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setDialogTitle("Please Enter File Name and Choose Location");
        List<String> userInput = Arrays.asList(programmerText.getText().split("\n"));
        PrintWriter out = null;                      

        int userSelection = fileChooser.showSaveDialog(fileChooser);
        if (userSelection == JFileChooser.APPROVE_OPTION) 
        {
             try 
             {
                 File fileToSave = fileChooser.getSelectedFile();

                 out = new PrintWriter(fileToSave.getAbsolutePath()+".txt");
                 for(int loop = 0; loop < userInput.size(); loop++)
                 {
                    out.println(userInput.get(loop));                                
                 }

            out.close();
             } catch (FileNotFoundException ex) {
                 Logger.getLogger(World.class.getName()).log(Level.SEVERE, null, ex);
             }
        }
    }