GUI programmed in Java, painting a tree by recursion