I have a JFIleChooser.showSaveDialog() where I have used setSelectedFile to set a default filename. However, my problem is that when the user selects a subdirectory of the directory the filechooser opened in, then the default filename I set is replaced by the name of the directory the user double-clicked on to open.
How can I get the file name I set e.g. 'default.txt' to remain in the 'File name' text box when the user is navigating through different directories? I only ever want the filename to change if the user edits it manually.
Hope you can help