The moose likes Swing / AWT / SWT and the fly likes How to access drive Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "How to access drive" Watch "How to access drive" New topic
Author

How to access drive

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 304
Hi,
I want to provide a browse button by clicking on it will go to the drive letter. What i mean when it click the button say "Browse" this will show a box which will have all drives letter of that computer.
Can you help me in this regard?
Arun
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Take a look at the JFileChooser class.
Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
listRoots will list all the drives, including network drives

How you want to display in your GUI is up to you then.
Kawaii
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to access drive
 
Similar Threads
JFileChooser and network drives
applying CSS to input type="file"
Browse Button Value
Uploading from a web page
how to browse only folder