using JavaFX runnable