I created a virtual table program last year, and meant to continue developing it, but got distracted by a more important project. As of now, it allows you to place, move, copy, remove and lock images (pieces) on a virtual area. You can also save and restore states, undo some things, and do some other stuff.
In any case, I uploaded the code to http://server2.uploadit.org/files/blah45-VirtualTable.jpg. Right click, select "save target/link as," and once downloaded rename it to a zip (the upload site only accepts jpg's).
The code should hopefully prove useful for anyone who wants to create a virtual tabletop program, if only to learn from my mistakes.
If you do end up using it, I'd be interested to know (especially as I use some of that code in other programs), so contact me at virtualtable.k.m1 a t recursor.net.