jdk/src/solaris/classes/sun/awt/X11/XFileDialogPeer.java
changeset 22584 eed64ee05369
parent 18178 ee71c923891d
child 23647 41d22f2dbeb5
equal deleted inserted replaced
22583:e7d5af0b11e9 22584:eed64ee05369
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   773     }
   773     }
   774 
   774 
   775     // 03/02/2005 b5097243 Pressing 'ESC' on a file dlg does not dispose the dlg on Xtoolkit
   775     // 03/02/2005 b5097243 Pressing 'ESC' on a file dlg does not dispose the dlg on Xtoolkit
   776     public void setVisible(boolean b){
   776     public void setVisible(boolean b){
   777         if (fileDialog == null) {
   777         if (fileDialog == null) {
   778             init((FileDialog)target);
   778             init(target);
   779         }
   779         }
   780 
   780 
   781         if (savedDir != null || userDir != null) {
   781         if (savedDir != null || userDir != null) {
   782             setDirectory(savedDir != null ? savedDir : userDir);
   782             setDirectory(savedDir != null ? savedDir : userDir);
   783         }
   783         }