My old FlatCAD project, with some junk taken out. It will only run on OSX as it is now but you can get the LWJGL for your platform and put the libraries in the right spot if you want it elsewhere.