directorychooser in 1.35f, example

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

directorychooser in 1.35f, example

albertoduina@virgilio.it
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
Reply | Threaded
Open this post in threaded view
|

Re: directorychooser in 1.35f, example

Wayne Rasband
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