Problems with FileDialog
Robert Krüger
krueger at lesspain.de
Mon May 27 02:05:24 PDT 2013
Hi,
I am using a native FileDialog as a directory chooser in our
application with code which looks like this
FileDialog fileDialog = new FileDialog(appFrame, title, FileDialog.LOAD)
try {
System.setProperty("apple.awt.fileDialogForDirectories", "true");
fileDialog.setVisible(true);
} finally {
System.setProperty("apple.awt.fileDialogForDirectories", "false");
}
...
This works as expected with Apple's JDK6 but with current OpenJDK8 the
first time I open the dialog, it only shows the "Media" category in
the dialog's sidebar. Nothing else is visible but a progress indicator
is displayed next to the "new folder" button but it never stops.
Additionally it hangs when selecting folders and there sometimes is a
long (several seconds) delay until folder contents is displayed.
I could not reproduce this in a simple test application yet. That's
why I'm asking if anyone else had similar problems before I try to
dissect our rather complex app to produce a simple test case that
exhibits the same behavior.
Regards,
Robert
More information about the macosx-port-dev
mailing list