Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+21 votes

I found a way to open the file explorer, but it was nested inside the new window I created for it. Is there a way where I can just open the file explorer window itself?

asked in CSC305 Fall 2022 by (562 points)

3 Answers

+10 votes
 
Best answer

You'll need to use the FileChooser object, which will open your OS's File Explorer. Take a look at the Movie Collection repository on GitHub for reference.

answered by (1 point)
selected by
+9 votes

Use the FileChooser object from the javafx.stage library

answered by (2.1k points)
+5 votes

As people have been saying FileChooser is amazing or Java Swing I believe has JFileChooser.

answered by (1 point)
...