JavaFX Code Structure
JavaFX is Oracles attempt at a modern UI Framework for the Java Platform. Although it is better than Swing, it is far away from what it could have been. One of many things JavaFX is missing is the testing story. JavaFX have this seemingly cool feature called FXML. With it, you can write declarative XML code and easily let the runtime map it to code. Combine that with the UI tool SceneBuilder you have a convenient way to create complex interfaces.