JDK-4170956 : swing 1.1beta2: filechooser getSelectedFiles() always return empty array of file
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_2.6
  • CPU: generic
  • Submitted: 1998-09-02
  • Updated: 1999-04-21
  • Resolved: 1999-04-21
Related Reports
Duplicate :  
Duplicate :  
Description
getSelectedFiles() always return an empty array of files.

code snippet:

	    fd.setMultiSelectionEnabled(true);
	    fd.setDialogTitle("Add item(s) into the Project );
            int retval = fd.showDialog(new JPanel(),"Add");
            if (retval == 0) {
              selectedFiles =fd.getSelectedFiles();
		// here the array is empy
            }