This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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)
Similar Threads
creating windows explorer in java(urgent)
Getting drive details[urgent]
creating windows explorer in java(urgent)
How to get the list of drives & file Properties[urgent]