before javafx refactoring