Java / Swing L-System code