To browse directories in JFileChooser, users use double-click. The problem is, if they click not fast enough, file chooser thinks they want to edit directory name, and it is very annoying. Is there a way to disable directory name editing?
You could set the file chooser to be read only, if need be:
UIManager.put("FileChooser.readOnly", Boolean.TRUE);
Unfortunately, that also removes the 'new folder' button, if I am correct.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With