Login  Register

Choice of file chooser in import sequence is not respected

Posted by Stein Rørvik on Mar 09, 2021; 8:51am
URL: http://imagej.273.s1.nabble.com/Choice-of-file-chooser-in-import-sequence-is-not-respected-tp5024507.html

We have under I/O options two choices:

"Use JFileChooser to open/save"
and
"Use file chooser to import sequences"

The former works as it should: If checked, the JFileChooser dialog is used when opening and saving files, and the native open/save file dialog box is used when unchecked.

The problem is that the JFileChooser dialog is always used for the file/folder choice when importing sequences, both when "Use file chooser to import sequences" I/O option is checked and unchecked. So this choice is not respected.

It appears that this problem was introduced when the new main dialog for file import was introduced in 1.53d. So I am talking about the dialog box that now appears after pressing the "browse" button. The main dialog still works as it should, also with drag-and-drop.

Also, JFileChooser seems to always be active for the getDir("Choose a Directory") function; the setOption does not disable it in the following:

setOption("JFileChooser", false);
getDir("Choose a Directory");

Perhaps these problems are related, that it is the same dialog as in the getDir("Choose a Directory") function that is called upon a click of the Browse button in the import dialog?

JFileChooser does not work well on my system, so I prefer to have an option to disable it for all cases.

Stein

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html