Added FileFilter to the FileChooser, only accepts txt and java files