What technique to use when trying to drag elements around on a canvas

Posted by choise on Programmers See other posts from Programmers or by choise
Published on 2014-05-26T17:57:38Z Indexed on 2014/05/26 21:59 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I want to achieve two things in my java swing application: First, i need a canvas zone where i can drag elements (a rectangle or a circle) from the outside of a pane inside the canvas and place it at the position where they where dropped.

also it should be possible to select an element on the canvas and move it around and drop it on another location on the canvas.

what techniques would fit best to do such a job?

Please leave a comment if something is unclear.

© Programmers or respective owner

Related posts about java

Related posts about swing