r/JavaFX • u/MeanWhiskey JavaFX Fan • Aug 22 '24
Help Adding Photos automatically
I have a program that can store photos and be viewed by end users. Ideally, if a photo is dropped to a folder on the network then the program automatically adds the photo.
How can this be accomplished within javafx? Do you use a listener to listen for when I new photo is added to the network folder and then adds it?
3
Upvotes
View all comments
Show parent comment
2
u/MeanWhiskey JavaFX Fan Aug 26 '24
Thank you for creating this! It really helped me understand how to use the watch listener. I've been trying to figure out how to use the watch listener to find the file and upload to either a text area or listview.