Duplicate :
|
|
Relates :
|
|
Relates :
|
Currently, when one types in a non-existant file in a JFileChooser open dialog and chooses it, the filechooser simply returns the entered file name. It would be nice for filechooser to add API allowing the developer to specify alternate ways of dealing with this. Cases I can think of are: 1) Return the file name (current behavior) 2) Prompt that the file doesn't exist. 3) Prompt that the file doesn't exist and offer to create. Another possibility is: 4) Prompt that the file doesn't exist and offer to create - but don't actually create the file. Apparently some editors show this behavior. They just use the returned file name to create a new buffer/document to be saved later. ###@###.### 2005-1-07 19:42:21 GMT
|