src/java.desktop/share/classes/java/awt/FileDialog.java

Print this page

        

@@ -318,11 +318,11 @@
         synchronized(getTreeLock()) {
             if (parent != null && parent.peer == null) {
                 parent.addNotify();
             }
             if (peer == null)
-                peer = getToolkit().createFileDialog(this);
+                peer = getComponentFactory().createFileDialog(this);
             super.addNotify();
         }
     }
 
     /**