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]
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. http://manning.spindoczine.com/sbe/ Cheers, Anthony.