This post introduces FXContainer 1.0 - an IoC container written in JavaFX and specifically meant to be used in JavaFX applications for providing Dependency Injection (DI). It addresses all JavaFX specific nuances and makes DI feel natural with JavaFX. It is powerful, feature rich and has a footprint < 75K. JavaFX development is fun again!
How to do Test Driven Development (TDD) with JavaFX using Model-View-Presenter pattern? In this installment of Effective JavaFX Architecture, I address this question with all the details and working code samples.
In the previous installment of Effective Architecture, I covered TDD with Model-View-Presenter. However the code I presented had synchronous server calls. In JavaFX (like Swing), the UI code runs in the Event Dispatch Thread (EDT). It is unwise to block the EDT. Hence it is encouraged to execute all server calls on a separate thread.
Swing provides SwingWorker to execute tasks off the...