Possible regression: FileDialog allowing selection of files with apple.awt.fileDialogForDirectories == true
Robert Krüger
krueger at lesspain.de
Sun Sep 8 03:44:06 PDT 2013
Hi,
for ages we have been using the following approach to show a native
file dialog to choose a directory:
FileDialog fileDialog = .....;
fileDialog.setMode(FileDialog.LOAD);
try {
System.setProperty("apple.awt.fileDialogForDirectories", "true");
fileDialog.setVisible(true);
} finally {
System.setProperty("apple.awt.fileDialogForDirectories", "false");
}
Now I noticed with build 103 that this allows me to select files as
well. Starting the same application with Apple's JDK 6 behaves as
expected. I cannot prove this right now but I am quite sure that I
specifically tested this with an OpenJDK 8 build a few months ago and
it worked. So this appears like a regression but I might be wrong.
Is this known or should I file a bug report?
Regards,
Robert
More information about the macosx-port-dev
mailing list