Login  Register

Re: getDirectory(string) not showing title

Posted by ctrueden on Dec 01, 2015; 4:58pm
URL: http://imagej.273.s1.nabble.com/getDirectory-string-not-showing-title-tp5015063p5015066.html

Hi Charles,

OS X 10.11 El Capitan removed the title bar from native directory choosers.

For more details, see:
  http://fiji.sc/bugzilla/show_bug.cgi?id=1188

Here is a workaround posted by Wayne Rasband:

> You can work around this problem by enabling the "Use JFileChooser"
> option. Here is an example:
>
>   setOption("JFileChooser", true);
>   dir = getDirectory("Choose a Directory");
>   setOption("JFileChooser", false);
>
> Unlike the native directory chooser, JFileChooser still has a title
> bar on OS X 10.11 (El Capitan).

Regards,
Curtis

On Tue, Dec 1, 2015 at 9:49 AM, Charles P. Daghlian <
[hidden email]> wrote:

> Good morning,
>
> I have a macro that uses the get.Directory macro command. It is no longer
> using the argument from get.Directory(“name”) as the title of the dialog.
> The macro has several points requiring selection of a directory, so the
> lack of a title makes it unclear what is to be selected. It used to work.
>
> I am using ImageJ 1.50e on OS X 10.11.1.
>
> Any thoughts?
>
> Chuck
> ********************************************
> Charles P. Daghlian, Ph. D.
> Director, E. M. Facility
> 7605 Remsen
> Dartmouth College
> 74 College Street
> Hanover, NH 03755
> 603-646-1039 / FAX 603-650-1637
> http://www.dartmouth.edu/~emlab/
> ********************************************
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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