I'd like the text in the file name field of the JFileChooser save dialog to select just the file name and not the extension.
I currently have this:
And want it to look like this:
This is a simple change, but one that makes saving a file much easier, in my opinion, since the user can start typing the file name right away without erasing the extension accidentally.
I know I can forcefully add the extension if it's missing, but I'd rather not do this because the extension isn't mandatory and I don't feel it should be enforced.
So, is there any way I could achieve this?