JDK-4835479 : JFileChooser/WindowsL&F: show hidden files if set in native Folder Options
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-03-20
  • Updated: 2003-12-15
  • Resolved: 2003-12-15
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.
Other
5.0 b32Fixed
Related Reports
Relates :  
Description
From 4501585:
12) configure windows to show all files, even the hidden files (to do this
    under windows 2000 open "My Computer", select the "Tools" menu and then
    select "Folder Options". there you'll find the option to show hidden files)

    now open the native windows file chooser, go to C:\ and look at the hidden
    files: they are the ones with the light coloured icon.

    now open JFileChooser and go to C:\ and look the hidden files.... ops!
    they aren't shown at all. so what I can do to select an hidden file?

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b32 tiger-beta
14-06-2004

EVALUATION Reproducible as described. ###@###.### 2003-11-07 Should be pretty easy to fix. We can check the native setting using SHGetSettings() w/ SSF_SHOWALLOBJECTS. The trick is also doing the right thing with respect to JFileChooser.setFileHidingEnabled(). ###@###.### 2003-11-13 It turns out that many version of NT4.0 don't include SHGetSettings() in shell32.dll. To get around this, we need to check for the SHGetSettings symbol ourselves, and avoid trying to call it on NT. ###@###.### 2003-12-09
09-12-2003

SUGGESTED FIX Not sure if there's a Windows API for this setting, but it might work to read the registry value HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden ###@###.### 2003-11-11
11-11-2003