CityBlock is a project mainly written in Java, it's free.
City building with shapes game of awesome (ness)
Structure:
/lib -> actual code /bin -> build to here compile -> compiles to /bin run -> runs the applet using the code from /bin