Forum Stats

  • 3,872,586 Users
  • 2,266,452 Discussions

Discussions hangs on non main threads.

843807 Member Posts: 46,582
edited Jul 20, 2010 7:38AM in Abstract Window Toolkit (AWT)
I have a GUI application that needs to open directories for the user.
This is (will be) a Java 7 application. It requires java.nio.file.attribute.Attributes. My JVM is jdk-64-1.7-b96-03-jun-2010

My problems is that when I call
where file is a directory, it fails to open the directory, and hangs.
This does not happen when I call it from the "main" thread, during testing, or from trivial starts like
 public static main(String[] args){
, but when I call it from a SwingWorker, or other runnable, the call never returns.
I have not tried this yet on Java 6, but I will asap. Until then, is this a known issue? is there a way to get this to work from the EventDispatchThread?



This discussion has been closed.