Graphical-Editor is a project mainly written in Java, it's free.
GRAPHICAL EDITOR By Matthew McNierney
Java applet for a simple graphical editor. Users can draw rectangles, ellipses, and line segments, and then edit them in various ways.