equal
deleted
inserted
replaced
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 } |