This looked like fun so I took a stab at it. Some hints on function: To copy: select a node and then, with the mouse button still pressed, press and hold the control key down until the drag is underway, drag the copied node to the target for release. To move a single node: press and hold mouse button, drag and drop. To move multiple nodes: Hold the control key down while making the multiple selections. On the last selection you can release the control key and drag the selection to the drop target for release. Most of this code comes from the javatip 114 that you lined to and javatip 97 which it (tip 114) linked to. It seems barely functional and needs a lot of testing.
edit: remove old tabs [ July 18, 2006: Message edited by: Craig Wood ]
Joined: Jun 21, 2006
Thank you so much! A working example was more than I expected. I know it needs testing but most importantly, the example really helped me understand what I was doing wrong with BufferedImage and Graphics2D. Thanks again.