i am developing a javafx program which gets some data from a database. Works fine, but when i call the function which returns the data everything else in my JavaFx programm ist stopping until all data are loaded. So its not possible to do some animation during this time. Would be nice to build an Loading image/grafic (a Class which extends Customnode with some kind of animation) which doesn't stop while loading the data. The other idea to show only an animated loading-GIF picture did not work, because Animation of Gif seems not to be supportet.
Anybody an idea how to realize this in JavaFX? I am not so familiar with Java, but what about using Threads?
Best Regards Riepi