-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b47
-
sparc
-
solaris_9
-
Verified
I am opening an AWT FileDialog on clicking a button on the frame. When the dialog opens, I am navigating through some of the directories listed and finally I am cancelling the dialog. When I call FileDialog.getDirectory() after that, it returns me the default directory. I expect this method to return 'null' when the dialog is cancelled.
This is how it behaves on Win32 and Motif and XToolkit must be compatible with Motif. This is reproducible on Mustang as well as Tiger-fcs. Not reproducible on Win32.
I have attached a sample test. Execute the sample test. Click on 'OPEN' or 'SAVE' button. A file dialog will be opened. Cancel the file dialog. If you see a valid directory being printed on the console, the bug is reproduced. I reproduced it on SolarisSparc9-CDE.
###@###.### 2005-04-25 12:44:15 GMT
This is how it behaves on Win32 and Motif and XToolkit must be compatible with Motif. This is reproducible on Mustang as well as Tiger-fcs. Not reproducible on Win32.
I have attached a sample test. Execute the sample test. Click on 'OPEN' or 'SAVE' button. A file dialog will be opened. Cancel the file dialog. If you see a valid directory being printed on the console, the bug is reproduced. I reproduced it on SolarisSparc9-CDE.
###@###.### 2005-04-25 12:44:15 GMT
- relates to
-
JDK-6260676 FileDialog.setDirectory() does not work properly, XToolkit
-
- Closed
-