68
If that doesn't work, here is a workaround:
dialog.getUI().setFileName( name )
But you should check whether the selection mode is FILES_ONLY or FILES_AND_DIRECTORIES. If it's DIRECTORIES_ONLY, then setSelectedFile() will strip the file name.