getFileList

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

getFileList

GAUTAM SHANKAR
Hi,

I'm writing a plugin, I would like to use getFileList() method in my
program.

Other methods I am able to use such as ... IJ.getDirectory("Choose a
directory");

But this doesnt work for getFileList().

Where can I find this method at?
Reply | Threaded
Open this post in threaded view
|

Re: getFileList

Andreas Maier
Hi,

why don't you use a drag-n-drop interface? I could help you with example
code.

Best,

Andreas

Am 6/30/2010 1:32 PM, schrieb GAUTAM SHANKAR:

> Hi,
>
> I'm writing a plugin, I would like to use getFileList() method in my
> program.
>
> Other methods I am able to use such as ... IJ.getDirectory("Choose a
> directory");
>
> But this doesnt work for getFileList().
>
> Where can I find this method at?
>
>    


--
Dr.-Ing. Andreas Maier
Stanford University
Department of Radiology
The Lucas Center for Imaging
Mail Code 5488, Route 8
Stanford, CA  94305
http://med.stanford.edu/profiles/Andreas_Maier/
Reply | Threaded
Open this post in threaded view
|

Re: getFileList

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by GAUTAM SHANKAR
On Jun 30, 2010, at 4:32 PM, GAUTAM SHANKAR wrote:

> Hi,
>
> I'm writing a plugin, I would like to use getFileList() method
> in my program.
>
> Other methods I am able to use such as ... IJ.getDirectory
> ("Choose a directory");
>
> But this doesnt work for getFileList().
>
> Where can I find this method at?

You need to use the list() method of the File class:

    http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#list()

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: UNSUBSCRIBE IMAGE J

Katherine Strissel
Rasband, Wayne (NIH/NIMH) [E] wrote:

> On Jun 30, 2010, at 4:32 PM, GAUTAM SHANKAR wrote:
>
>  
>> Hi,
>>
>> I'm writing a plugin, I would like to use getFileList() method
>> in my program.
>>
>> Other methods I am able to use such as ... IJ.getDirectory
>> ("Choose a directory");
>>
>> But this doesnt work for getFileList().
>>
>> Where can I find this method at?
>>    
>
> You need to use the list() method of the File class:
>
>     http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#list()
>
> -wayne
>