Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jbutton in java swing(to browse through pc folders)

Tags:

java

swing

I want to create a "browse" button in swing in which when a user "browse" browse button he shold be able to select a location from his hard drive folders to save the file.This is a part of my interface design.how do i do it? I want the path to be displayed onto the text box on the side of browse button.

like image 218
Ishan Avatar asked Feb 12 '10 10:02

Ishan


1 Answers

You should take a look at Sun's tutorial for the JFileChooser API. This will give you pretty much everything you need to accomplish what you're trying to do.

like image 126
ninesided Avatar answered Sep 18 '22 11:09

ninesided