Problems with FileDialog
niagarasoft20-macosxportdev at yahoo.com
niagarasoft20-macosxportdev at yahoo.com
Mon May 27 02:31:03 PDT 2013
Robert, Are you invoking a splash screen at start up? Mike
>________________________________
> From: Robert Krüger <krueger at lesspain.de>
>To: "macosx-port-dev at openjdk.java.net" <macosx-port-dev at openjdk.java.net>
>Sent: Monday, May 27, 2013 5:05 AM
>Subject: Problems with FileDialog
>
>
>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