Ted West
Ted West

Reputation: 81

Anyway to open file explorer and return location of selected file

I'm looking for a way which allows the user to open the file explorer once a button has been pressed, and allow the user to choose an image file, but instead of opening it, return the file location. Is there anyway this can be done?

Upvotes: 0

Views: 168

Answers (1)

MadProgrammer
MadProgrammer

Reputation: 347194

The question depends, what API are you intending to use?

Swing has JFileChooser

AWT has FileDialog

JavaFX has FileChooser

For example...

Upvotes: 1

Related Questions