A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Swing / AWT / SWT
How to access drive
Joined: Dec 07, 2001
Feb 11, 2002 17:42:00
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?
Joined: Jul 11, 2001
Feb 12, 2002 08:34:00
Take a look at the
GenRocket - Experts at Building Test Data
Joined: Jan 15, 2002
Feb 12, 2002 12:59:00
listRoots will list all the drives, including network drives
File  roots = File.listRoots(); for(int i = 0; i < roots.length; i++) System.out.println(roots[i]);
How you want to display in your GUI is up to you then.
I agree. Here's the link:
subject: How to access drive
JFileChooser and network drives
how to browse only folder
applying CSS to input type="file"
Uploading from a web page
Browse Button Value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015