Hi,
I want a code for opening a particular folder or directory on button click.
Thanks.
chetan_8187
0
Newbie Poster
Recommended Answers
Jump to PostThe above question doesn't really specifies what you trying to achieve, but JFileChooser is something you should have look at, here is tutorial.
If this is not what you looking for, well then …
Jump to Postand, preferably, what you tried so far
Jump to PostIf you mean you want to open it for general browsing in the OS (with Explorer for example), you'll have to use Runtime.exec() or ProcessBuilder for that.
All 10 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
chetan_8187
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
chetan_8187
0
Newbie Poster
gangsta1903
2
Junior Poster
gangsta1903
2
Junior Poster
alexa-lol
0
Newbie Poster
gangsta1903
2
Junior Poster
sairakhushi
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.