file operation like VB
1 posts in topic
Flat View  Flat View

Posted By:   nire_l
Posted On:   Friday, March 21, 2003 10:53 PM

I'm some doing file operations in JAVA using GUI. I want to list all the files of a prticular dir on the screen & when user selects one or more files from that screen & say copy to some destination, that should happen.
I'm using Swing & i'm able to list the files for a particular dir but how to select files & get the name of those selected files is a problem..
I'm stuck here can nybody help me out..

Thnaks in advance..........

Re: file operation like VB

Posted By:   eimi_nos  
Posted On:   Saturday, March 22, 2003 02:33 AM

If you mean a filtered file listing, you can implement the interface java.io.FileFilter or java.io.FilenameFilter and use the method(s) listFiles(java.io.FileFilter) or listFiles(java.io.FilenameFilter) of the class java.io.File.
About | Sitemap | Contact