This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Searching files from a drive and displaying them in an window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Searching files from a drive and displaying them in an window" Watch "Searching files from a drive and displaying them in an window" New topic
Author

Searching files from a drive and displaying them in an window

sankar dunga
Greenhorn

Joined: Mar 07, 2011
Posts: 16
Dear all,

It might be the simple question. Please give me best answer.

I have an external disk. I want to search for what files exists in that disk and wants display them in an window(ie in GUI).
And later i want select one or more files from them and then want read them to my local host memory.

And later can i delete those files from external disk?

Please give answer how can i do it?

thank you
with regards
sankar
Hunter McMillen
Ranch Hand

Joined: Mar 13, 2009
Posts: 490

What have you tried?

Hunter


"If the facts don't fit the theory, get new facts" --Albert Einstein
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9955
    
    6

Your question is rather broad to get much help here. What specifically are you having trouble with? What have you tired, and how is it working?

Folks here love to help you solve your problems, but they don't really like to write your code for you.

As with all projects, I would suggest breaking it down into smaller, discrete parts. The various tasks I see that are all independent of each other are:

1) get a list of files from a given directory
2) Given a list of files, display them
3) Allow a user to select one or more files from a GUI
4) given a list of files, read them into memory
5) given a file, delete it.

Each and every one of these five items can be written without any of the other four working. Write the methods independently of each other. Test each until you are 100% sure they are bullet proof, then test them all again and again.

Only when you are 1000% sure they work should you start wiring them together.


Never ascribe to malice that which can be adequately explained by stupidity.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
You may find this helpful for steps 1 -3.


Joanne
 
 
subject: Searching files from a drive and displaying them in an window
 
Similar Threads
help me please :)
about image processing
security restrictions of file I/O?
Lock a directory... need ideas
help me please :)