0

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?

1 Answer 1

1

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

Swing has JFileChooser

AWT has FileDialog

JavaFX has FileChooser

For example...

Sign up to request clarification or add additional context in comments.

2 Comments

I'm intending to use JavaFX
Take a look at the supplied link. It should just about provide you with everything you need...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.