javafx with troubles but working