Connecting Tech Pros Worldwide Forums | Help | Site Map

Browsing a Directory is it possible..?

Newbie
 
Join Date: Sep 2009
Posts: 4
#1: Sep 23 '09
I creating a program and I'm done with my design. my program contains 2radiobuttons, 3textfields and 3buttons. the flow of my program is to browse a single file and directory...

my question is? it is possible to browse a directory..?

do you have tutorial on this..? on how to make this possible..?

please help.. i need your idea.

thanks.

Member
 
Join Date: Aug 2008
Posts: 124
#2: Sep 23 '09

re: Browsing a Directory is it possible..?


You said that you finished your design.. this means that you have decided which objects to use (assuming you do object-oriented programming with Java)..
Now study the technologies Java offers for the each individual task you want to perform.
Study the java.io package that lets you manipulate files and directories. Look at Swing for the GUI and combine them..
I do not know but i believe that Swing will most probably have something ready for directories. I know for example that it has JFileChooser that lets you open some file: http://java.sun.com/docs/books/tutor...lechooser.html


Hope i helped
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#3: Sep 23 '09

re: Browsing a Directory is it possible..?


Read about JFileChooser.
Newbie
 
Join Date: Sep 2009
Posts: 4
#4: Sep 24 '09

re: Browsing a Directory is it possible..?


Thanks for the help... I'll do what you want... i read about java.io packages and also i look unto Swing for the gui and i read about JFileChooser
Reply