JavaRanch » Java Forums »
Java »
Swing / AWT / SWT
| Author |
Moving clickedShapes and only clickedShapes on a panel
|
Kieran Murray
Ranch Hand
Joined: May 18, 2008
Posts: 47
|
|
Hi Guys, I can not find a way of only moving the clickedShape in my code. The code allows you to scale some drawn objects and add rectangles. You can also move the panel around. What would be useful now would be to just move the object that is clicked. Unfortunately the code below does not do this. The aim is to move all the objects when I click on the panel and just move the clickedObject when I click on it. Kind regards, The Apprentice
|
 |
Craig Wood
Ranch Hand
Joined: Jan 14, 2004
Posts: 1535
|
|
Here's a way to explore the dragging of the geom primitives.
|
 |
Kieran Murray
Ranch Hand
Joined: May 18, 2008
Posts: 47
|
|
Craig, A tardy thank you. The code you provided is the basis of my drawing application. It is really excellent code. Kind regards, Kieran
|
 |
 |
|
|
subject: Moving clickedShapes and only clickedShapes on a panel
|
|
|
|