def choose_file
      returnVal = @chooser.showOpenDialog(@parent);

      if(returnVal == javax.swing.JFileChooser::APPROVE_OPTION)
        @chosen_file = @chooser.getSelectedFile().absolute_path
      else
        @chosen_file = nil
      end

      return @chosen_file
    end
def choose_file
      returnVal = @chooser.showOpenDialog(@parent);

      if(returnVal == javax.swing.JFileChooser::APPROVE_OPTION)
        @chosen_file = @chooser.getSelectedFile().absolute_path
      else
        @chosen_file = nil
      end

      return @chosen_file
    end
Creates a new FileChooser. Options may include:
 * :description => a string describing the desired file
 * :parent => (required) the parent window
 * :directory => starting directory
 * :title => title of the window
 * :directories_only => boolean, true if the user must select a directory
 * :files_only => boolean, true if the user must select a file

 Opens the windows and returns the chosen file.