| Prompt the user for a filename and then attempt to load the file.
The file is loaded on a worker thread because we don't want to
block the EDT while the file system is accessed. To do that,
this Action method returns a new LoadFileTask instance, if the
user confirms selection of a file. The task is executed when
the "open" Action's actionPerformed method runs. The
LoadFileTask is responsible for updating the GUI after it has
successfully completed loading the file.
a new LoadFileTask or null |