Login  Register

Re: directorychooser in 1.35f, example

Posted by Wayne Rasband on Oct 25, 2005; 3:03pm
URL: http://imagej.273.s1.nabble.com/directorychooser-in-1-35f-example-tp3704615p3704616.html

The Directory chooser was broken on Windows and Linux in the 1.35f
ij.jar available over the weekend but it is fixed in the 1.35f ij.jar
dated 24 October.

-wayne

On Oct 25, 2005, at 5:08 AM, [hidden email] wrote:

> Hi Waine,
> here are an example plugin  to show my problem. The O.S. is
> Windows XP
> If I run it with the ImageJ 1.35e into the dialog appear the
> Select button and  the log file is:
> IsMacOsx : false
> isJava14:true
> isJava2:true
> IJversion:1.35e
> DirectoryChooser return : C:
> \Dati\New211005\
> If I run it with the ImageJ 1.35f into the dialog
> appear the Open button and I am forced tio select a file, the log file
> is:
> IsMacOsx : false
> isJava14:true
> isJava2:true
> IJversion:1.35f
> DirectoryChooser return : C:\Dati\New211005\99514354/
> (the name of the
> file is 99514354 without extension, is a siemens mri file)
> The problem
> is independent from the version of IJ where I compile the class file.
> Thanks in advance
>
>
> import ij.*;
> import ij.gui.*;
> import ij.io.*;
> import ij.plugin.*;
>
> public class TestDirectoryChooser_ implements
> PlugIn {
> public void run(String arg) {
>
>         IJ.log("IsMacOsx : "+IJ.
> isMacOSX());
>         IJ.log("isJava14:"+IJ.isJava14());
>         IJ.log("isJava2:"+IJ.
> isJava2());
>         IJ.log("IJversion:"+IJ.getVersion());
>
>         DirectoryChooser
> od1 = new DirectoryChooser("SELECT A DIRECTORY");
>         String dir = od1.
> getDirectory();
>         IJ.log("DirectoryChooser return : "+dir);
>         }       // end
> run
> } // last