• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting a file's location with browse button

 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all!

I'm trying to figure out how to write a piece of code that uses a browse button to select a file's location (much like when you are uploading a file but I only care about the file's location as I'm just going to connect to it). Any advice? I've been browsing around trying to find a solution and haven't found much.

Thanks, as always!

~Brandi
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would either the java.awt.FileDialog or the javax.swing.JFileChooser class fit the bill?
 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks to me like either of those would do the trick. Thanks, Ulf!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!