private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
        // get a file path from the user
        programmerThread.stop();
        hidePanels(lastPane);
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setDialogTitle("Please Specify the File To Open");
        File fileToOpen;
        BufferedReader readIn;
        String newMap = new String();
        
        int userSelection = userSelection = fileChooser.showOpenDialog(fileChooser);

        if (userSelection == JFileChooser.APPROVE_OPTION) 
        {
            try {
                fileToOpen = fileChooser.getSelectedFile();
                readIn = new BufferedReader(new FileReader(fileToOpen));
                
                while(readIn.ready())
                {
                    newMap += readIn.readLine();
                    newMap += '\n';
                }
            } catch (FileNotFoundException ex) {
                Logger.getLogger(Karel.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(Karel.class.getName()).log(Level.SEVERE, null, ex);
            }            
            //file is now in newMap string, turn string into actual new map!
            world.setLevelString(newMap);
            world.worldDeleter();
            world.initWorld();

            //paint
            this.repaint();
            
        }
        
    }//GEN-LAST:event_jMenuItem2ActionPerformed