After looking at some code sources out there I noticed Java Swing Games usually create a class implementing Runnable, create a new Thread
and set up the game loop in the run()
call.
But JavaFX games seem to simply extend from Application
and run the game loop in a new AnimationTimer() { ... public void handle() ... }
What gives?