Dragging a Shape?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheMan1
    New Member
    • Mar 2008
    • 19

    #1

    Dragging a Shape?

    Hey guys,

    I have a Line2D object that I want to be able to move across the screen (a JPanel) when the user clicks and drags on it. I've trying doing stuff with the mouseDragged() mouse event but it's not working. Anyone know a way?

    Your help is much appreciated.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Greetings!

    Do you have the code you are referring to? if you add a bit of your code, experts may see you and come to aid.

    Not a full blown expert as of yet in this but I reckon with a bit of info, I could at least give you an idea.

    In a bit!

    Comment

    • myusernotyours
      New Member
      • Nov 2007
      • 188

      #3
      Originally posted by Dököll
      Greetings!

      Do you have the code you are referring to? if you add a bit of your code, experts may see you and come to aid.

      Not a full blown expert as of yet in this but I reckon with a bit of info, I could at least give you an idea.

      In a bit!
      I agree. It will be much easier to help if we can tell what the OP has done and where they are stuck.

      Regards,

      Alex.

      Comment

      Working...