Java application which displays a shortest path animation