How I Choose a folder
Thanks my friend for your answer,
Perhaps i do not explain clearly my question. I know how I get files from a folder.
My question How I select a folder.
From this selected folder i get the files.
I know how I get files but the problem How I choose a folder.
Thanks a lot for your helpful.
April 7, 2010 at 5:09 PM
Try the following code:
public class ChooseFolder
public static void main(String args)
JFileChooser chooser = new JFileChooser();
if (JFileChooser.APPROVE_OPTION==chooser.showDialog(null, "Select"))
File dir = chooser.getSelectedFile();
Related Tutorials/Questions & Answers:
How I Choose a folder - Java Interview Questions
know how I
get files but the problem How I choose
Thanks...How I Choose
a folder Thanks my friend for your answer,
do not explain clearly my question. I
know how I
get files from a folder
How to Choose a Dedicated Server?
a Dedicated Server? Hi,
a Dedicated Server? Tell me the tips for choosing a best dedicated server hosting company... choose
a good dedicated server for hosting your applications.
how to set folder size in php
to set folder
size in php hi ,
to create folder
dont know how
to set size for folder
did u know means tell me. thankyour
how to download a file from a folder??
to download a file from a folder
can upload any kind of files to a folder
, and only the path of the file is saved into the database, now how
a client can download the file from my folder
. pls provide me the jsp code
how to browse folder and directory in jsp
to browse folder
and directory in jsp how
to browse folder
... but dont know how
to get files after that.and also i
want to show limited directories based on last modified date for eg:if the directory contains 10 folders i
I don't found in Tomcat 7.0 's bin folder..
don't found in Tomcat 7.0 's bin folder
.. While making servlet using tomcat 7.0, i
don't find startup.bat file in bin folder
My servlet... know how
to run my servlet even i
am following all the steps
how to backup files and folder with Java
to backup files and folder
with Java Does anyone know to create a backup with java?. backup files and folders from my computer to an external...:\\Documents and Settings\\bharat\\Desktop\\bipul\\New Folder
Choose a class
a class Hi,
am working with java.
was wondering what to type in the start of a program so I
between all the classes in the program? How
to use only "class A" for example?
Thanks for a quick
In this section, you will learn how
to use JTSL choose
In the given example, the c:if tag is used for a decision need
How to Choose Jewelry?
From the man perspective it might seem like choosing... that I
hours shopping for a new set of earrings with my girlfriend just to leave the
mall empty handed. After all these experiences I
Folder in Java.
in Java. I
have any problem how
to make Folder
in java program?
Can Anybody help me in this part
how can i display a pdf file in a jtextarea
display a pdf file in a jtextarea I
need to display a pdf file in a jtextfield or in a jtextarea.Atlest i
need to displat it in a jframe.I have a button and while clicking on it ,i
need to choose
the pdf file and need
How to find the exact PHP template I need?
to find the exact PHP template I
I'm a PHP Pro?I
am one?, but this is the first time for me to try a PHP template, so I
have no clue on how
one. Do you have some tips to help me choose