JDK-6645710 : There isn't any convenient ways to make FileChooser in read only mode
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2007-12-27
  • Updated: 2018-09-05
Related Reports
Relates :  
Description
Now there is only one way to prevent modifications of file systems (creation new folders, renaming and deletion) from JFileChooser: UIManager.put("FileChooser.readOnly", Boolean.TRUE);

This method is not convenient and has a bad usability.

Comments
SUGGESTED FIX Add new methods: JFileChooser.isReadOnly() JFileChooser.setReadOnly(boolean readOnly)
27-12-2007

WORK AROUND UIManager.put("FileChooser.readOnly", Boolean.TRUE);
27-12-2007