Switch to JavaFX.
Refactoring.