File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Similar to windows MyComputer(urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Similar to windows MyComputer(urgent)" Watch "Similar to windows MyComputer(urgent)" New topic

Similar to windows MyComputer(urgent)

netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
How to get the list of drives in a machine.I want to display the list of drives [with drive label & size ] and then the list of files & directories [with size & no. of files] by double-clicking the drive.I wish to display them in a frame or window, similar to the windows My Computer.I want to display the file_size, date_created,last_modified_date,permissions such as read_only, hidden etc., by right_clicking & viewing the properties. Please send me some code.Reply as soon as possible.[urgent]
Anthony Alberts

Joined: Sep 18, 2001
Posts: 7
Hi netharam
One of the better examples of what you are trying to do is in the book entitled Swing. There is an online copy of the book befor it went to print. This can be down-loaded with runnable code examples. What you are looking for is in chapter 17 and the example being 'FileTree1'. I hope this helps. I see that you posted your question a while ago and you might have sorted tha problem already. The book is worth checking out anyway.
I agree. Here's the link:
subject: Similar to windows MyComputer(urgent)
It's not a secret anymore!