Tailing program written in Javafx