src/solaris/classes/sun/awt/X11/XToolkit.java

Print this page

        

@@ -1059,10 +1059,18 @@
                 target) : new XFileDialogPeer(target);
         targetCreatedPeer(target, peer);
         return peer;
     }
 
+    public DirectoryDialogPeer createDirectoryDialog(DirectoryDialog target) {
+        DirectoryDialogPeer peer = checkGtkVersion(2, 4, 0) ? 
+                new GtkDirectoryDialogPeer(target)
+                : new XDirectoryDialogPeer(target);
+        targetCreatedPeer(target, peer);
+        return peer;
+    }
+
     public MenuBarPeer createMenuBar(MenuBar target) {
         XMenuBarPeer peer = new XMenuBarPeer(target);
         targetCreatedPeer(target, peer);
         return peer;
     }