Tailing program written in JavaFX