MarsTwo
MarsTwo

Reputation: 95

Opening File AND Directories Using FileChooser only in JavaFX

Someone asked this question 4 years ago here. The answer was, Linux systems didn't support that functionality natively, therefore it couldn't be supported across all of JavaFX.

Just for clarification, I'm looking for a way to give users the ability to select multiple files and directories at once using only FileChooser, not DirectoryChooser. I have the system working now where I ask the user if they'd like to import music files or search folders for music files. Depending on their response, I open either FileChooser or DirectoryChooser. This however, is confusing for some users and it's more cumbersome than I'd like.

Does anyone know if this functionality is up and running yet?

Upvotes: 1

Views: 498

Answers (1)

n247s
n247s

Reputation: 1918

There is no way using javafx from what I know. But you could go for the awt FileChooser. It doesnt look remotly like a native FileChooser, but at least it gets the job done. (Ps. Layout can always be altered)

Upvotes: 1

Related Questions