8024485: For 5-1 step: if input something into the 'File:' and 'Dir:', the dir output isn't empty in the output window after showing and canceling the file dialog
authorpchelko
Mon, 16 Sep 2013 19:44:47 +0400
changeset 20140 b17201ff7e3f
parent 20139 53e1e07a811e
child 20141 2ed60881f2a1
8024485: For 5-1 step: if input something into the 'File:' and 'Dir:', the dir output isn't empty in the output window after showing and canceling the file dialog Reviewed-by: serb, anthony
jdk/src/windows/classes/sun/awt/windows/WFileDialogPeer.java
--- a/jdk/src/windows/classes/sun/awt/windows/WFileDialogPeer.java	Mon Sep 16 19:38:32 2013 +0400
+++ b/jdk/src/windows/classes/sun/awt/windows/WFileDialogPeer.java	Mon Sep 16 19:44:47 2013 +0400
@@ -182,6 +182,7 @@
 
         AWTAccessor.getFileDialogAccessor().setFile(fileDialog, null);
         AWTAccessor.getFileDialogAccessor().setFiles(fileDialog, null);
+        AWTAccessor.getFileDialogAccessor().setDirectory(fileDialog, null);
 
         WToolkit.executeOnEventHandlerThread(fileDialog, new Runnable() {
              public void run() {