< prev index next >

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

Print this page

        

*** 35,45 **** 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 { --- 35,44 ----
*** 118,128 **** @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(); } // We hide ourself before "show" returns - setVisible(false) // doesn't apply } --- 117,127 ---- @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 Thread(null, new Task(), "FileDialog", 0, false).start(); } // We hide ourself before "show" returns - setVisible(false) // doesn't apply }
< prev index next >