| Author |
problem in this code
|
Rishabh Rathi
Greenhorn
Joined: Mar 07, 2011
Posts: 13
|
|
I want to browse for folder and want the browsed path in the textbox....
field1.setText(chooser.getSelectedFile());
here chooser.getSelectedFile() is giving me the path of browser and know i want that path to be in field1( i.e text box) .how i can perform the above task so as to get the desired output
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4163
|
|
|
What's a textbox? Does its setText method accept a File? (not likely)
|
luck, db
There are no new questions, but there may be new answers.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8430
|
|
|
Check out the File API for methods which will give you the path of a given file
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: problem in this code
|
|
|