java filecheeser error on UNC path

Hi the following code get exception when try to use a network share path like \\computer_name\share_name. For local directory no problem. And there is no permission problem on share...
      JFileChooser fc = new JFileChooser();
      int retval = fc.showOpenDialog(frame);

      if(retval == JFileChooser.APPROVE_OPTION){
            String path = fc.getCurrentDirectory().toString();
      }else {
            System.out.println("No Selection ");
Exception in thread "Basic L&F File Loading Thread" java.lang.InternalError: Unable to bind \\computer_name\share_name to parent
      at javax.swing.filechooser.FileSystemView.getFiles(
      at javax.swing.plaf.basic.BasicDirectoryModel$
Who is Participating?
gatorvipConnect With a Mentor Commented:
This is a bug in your version of JDK when using DIRECTORIES_ONLY mode. See here:
Also,  4356160  , 5086831  

The first link contains a workaround if you cannot upgrade to JDK 6.
Is \\comp\share already connected - JFileChooser cannot show an authentication dialog.

What version of Java are you on, and what platform?
karanbaAuthor Commented:
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

On windows xP machine

\\comp\share  is not connected, there is no need authenticaiton its public to everyone.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.