getDirectory(string) not showing title

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

getDirectory(string) not showing title

Charles P. Daghlian
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
Reply | Threaded
Open this post in threaded view
|

Re: getDirectory(string) not showing title

ctrueden
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