To arrange for a file-dialog window to display only those files that have a particular extension, you restrict display using the fileSpec: method, with a wildcard character, *, as in the following example:
fileSpec:
*
theFileDialog fileSpec: '*.dta'.