JDK-6250590 : JFileChooser doesn't offer validation
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-04-05
  • Updated: 2010-04-02
  • Resolved: 2005-04-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
RFE Description : JFileChooser doesn't offer validation, which is available in native Filechooser's.

Steps to reproduce:
1.Install jdk1.6.0
2.Launch FileChooser Demo
3.Select "Save" option and "Windows" L/F 
4.Click "Show File Chooser" button

Save dialog will open up in "FileName" text field enter a file name with absolute path,the path should not exist(enter invalid drive location) and click "Save" button,

Expected behavior : it should report error message ,displaying invalid location or location cannot exist.
Actual Behavior : but validation is not happening

Option available to application developer is a workaround 
User have to create a subclass of JFileChooser and override the
method approveSelection() and perform validation test there,
and then User can show an error dialog (using JOptionPane), or if
everything is okay then just call super.approveSelection().

when same in implemented in JFileChooser User will not have to override any method,it will be easy for User to use it.

###@###.### 2005-04-05 11:06:59 GMT

Comments
EVALUATION This is a duplicate of RFE 6215240. ###@###.### 2005-04-05 16:21:15 GMT
05-04-2005