directorychooser in 1.35f, example
Posted by albertoduina@virgilio.it on Oct 25, 2005; 10:08am
URL: http://imagej.273.s1.nabble.com/directorychooser-in-1-35f-example-tp3704615.html
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