Skip to content
Advertisement

Load random Image from a directory using javafx

How can I load a random image from a directory using javafx, (the files located in the directory have different names)

Currently I am using the following to load a specific file

JavaScript

Advertisement

Answer

Thanks to Patrick I came up with a short version:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement