check for javafx thread