Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P2
-
Resolution: Fixed
-
Affects Version/s: 5.0
-
Fix Version/s: 5.0
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b43
-
CPU:generic
-
OS:generic
Description
JFileChooser now supports a UI defaults property "FileChooser.readOnly" which
prevents creation of new folders and renaming files. If setting this property
to false, then FilePane crashes with a NullPointerException.
java.lang.NullPointerException
at sun.swing.FilePane.addActionsToMap(FilePane.java:354)
at sun.swing.FilePane.createActionMap(FilePane.java:346)
at sun.swing.FilePane.<init>(FilePane.java:124)
at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFile
ChooserUI.java:185)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserU
I.java:135)
[...]
###@###.### 2004-02-25
prevents creation of new folders and renaming files. If setting this property
to false, then FilePane crashes with a NullPointerException.
java.lang.NullPointerException
at sun.swing.FilePane.addActionsToMap(FilePane.java:354)
at sun.swing.FilePane.createActionMap(FilePane.java:346)
at sun.swing.FilePane.<init>(FilePane.java:124)
at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFile
ChooserUI.java:185)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserU
I.java:135)
[...]
###@###.### 2004-02-25
Attachments
Issue Links
- relates to
-
JDK-4525475 Cannot prevent file-system modification in JFileChooser
-
- Resolved
-