/** ****************************** */ private void event() { start.setOnAction( e -> { if (Static.timeline.getStatus() == Status.PAUSED || Static.timeline.getStatus() == Status.STOPPED) Static.timeline.play(); else Static.timeline.pause(); }); init.setOnAction( e -> { Init = !Init; }); drawPane.setOnMouseMoved( e -> { Cordinates.setText("X " + e.getX() + " Y" + e.getY()); mvl.setStartX(e.getX()); mvl.setEndX(e.getX()); mhl.setStartY(e.getY()); mhl.setEndY(e.getY()); }); setObstacles(); }