JFileChooser freezes sometimes

I ran into the "JFileChooser freeze" problem as described in the following threads:

http://forums.sun.com/thread.jspa?threadID=5309960

http://forums.sun.com/thread.jspa?threadID=724817

http://x86.sun.com/thread.jspa?threadID=5275999&messageID=10156541

I am using JVM 1.6.0_07-b06. This happens in both Windows XP and Windows Vista.

Has anyone found a workaround for this?

+5
source share
4 answers

There is an error where, if you connected a network drive to the desktop, it can sometimes hang on JFileChooser. This or may be a shortcut to a network drive. Something like that ...

+4
source

, . , zip ( ) ( JFileChooser) .

+2

.10 zipfile .

0

, , , Java . ( ):

  • ,
  • JFileChooser ( ), . , :

public static JFileChooser chooser = null;

public static void doSomething(){
    if(chooser==null)
         chooser = new JFileChooser();
    //use JFileChooser
}

, ... . - JRE.

0

All Articles