Changes to use javafx instead of swing

Changes to use javafx instead of swing