< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CFileDialog.java

Print this page

        

@@ -35,11 +35,10 @@
 import java.io.*;
 
 import sun.awt.CausedFocusEvent.Cause;
 import sun.awt.AWTAccessor;
 import sun.java2d.pipe.Region;
-import sun.misc.ManagedLocalsThread;
 import sun.security.action.GetBooleanAction;
 
 class CFileDialog implements FileDialogPeer {
 
     private class Task implements Runnable {

@@ -118,11 +117,11 @@
     @Override
     public void setVisible(boolean visible) {
         if (visible) {
             // Java2 Dialog class requires peer to run code in a separate thread
             // and handles keeping the call modal
-            new ManagedLocalsThread(new Task()).start();
+            new Thread(null, new Task(), "FileDialog", 0, false).start();
         }
         // We hide ourself before "show" returns - setVisible(false)
         // doesn't apply
     }
 
< prev index next >