You are welcomed to check out [url=http://www.phy.ntnu.edu.tw/ntnujava/viewtopic.php?p=1614]EJS version of traffic light control[/url].
Download the jar file and run it as an apllication with many options(screen shot/save as animated gif/...).