Reputation: 81
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
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