How to make shapes from images in java 2d

found this open source java svg editor helpful

http://glipssvgeditor.sourceforge.net/