JFileChooser on 64bit Windows Vista is not showing all subfolders.

When we use JFileChooser on Windows Vista 64bit machine it miss some of the subfolders. e.g at 'C:\WINDOWS\system32' folder it's not showing '\spool' folder which is there actually.

import javax.swing.JFileChooser;

import javax.swing.SwingUtilities;

import javax.swing.UIManager;

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;

publicclass TestChooser{

publicstaticvoid main(String[] args){

SwingUtilities.invokeLater(new Runnable(){

publicvoid run(){

try{

UIManager.setLookAndFeel(new WindowsLookAndFeel());

JFileChooser chooser =new JFileChooser();

chooser.showOpenDialog(null);

}catch (Exception e){

thrownew RuntimeException(e);

}

}

});

}

}

[1741 byte] By [Jeetu_Aroraa] at [2007-11-27 10:48:30]
# 1

Why do you assume that it's supposed to show it? Most likely, because of the user running the app, it's not got permissions to see that folder and other system folders. Java does actually sometimes respect the local system security, ya know?

bsampieria at 2007-7-28 22:27:29 > top of Java-index,Desktop,Core GUI APIs...
# 2

But that is the default location i have to set for my JFlieChooser. Do you have any idea to change the permessions?

Jeetu_Aroraa at 2007-7-28 22:27:29 > top of Java-index,Desktop,Core GUI APIs...