NOTE: A slidedeck with 20 slides of "How To" JavaFX Dependency Injection with FxContainer is available here.
The world is already filled with dozens of IoC containers. Do we need another one? That is the question I pondered a lot before setting out to write a DI/IoC container in JavaFX. I will briefly cover the facts that necessitated writing one and then show how to use it...
on Aug 21, 2010
In the last installment of my post, I briefly described how to do Test Driven Development (TDD) in JavaFX using Model-View-Presenter (MVP) pattern. In this installment, I illustrate this particular piece in detail and provide working code samples. You can download the code here (Caution: 6.7 MB download).
The download is a zip file containing all 4 Netbeans projects. The code is tested with...
on Jul 7, 2010
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...
on Jul 23, 2010