Java 2D Graphics Drag and Drop

Discussion in 'Java' started by shawleigh17, Jul 8, 2009.

  1. shawleigh17

    shawleigh17

    Joined:
    Jun 9, 2009
    Messages:
    2
    Hi, I am trying to do a drag and drop interface using Java 2D graphics. I have gotten it to actually drag and drop, but the cursor/image is too slow when trying to use the mouseDragged event. The cursor will be all the way over to the left of the screen, and when I release the mouse, the image will only have moved a half inch to the left. I have limited experience with Java (only about 6mos worth), so I am not sure if there is a better option. I know that swing has drag and drop capability, but I didn't think it would work for what I was trying to do. Maybe somebody can convince me otherwise.

    The code was too long to post here, so I have attached it.

    Thanks,
    Shawna
     

    Attached Files:

    shawleigh17, Jul 8, 2009
    #1
    1. Advertising

  2. shawleigh17

    melita777

    Joined:
    Aug 27, 2012
    Messages:
    1
    hi

    hi I am having troubles with drag and drop..could you help me please?
     
    melita777, Aug 27, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Blah Blah

    java, drag-n-drop, and macintosh

    Blah Blah, Aug 20, 2003, in forum: Java
    Replies:
    0
    Views:
    467
    Blah Blah
    Aug 20, 2003
  2. Oliver Klein
    Replies:
    0
    Views:
    725
    Oliver Klein
    Aug 24, 2003
  3. David
    Replies:
    0
    Views:
    386
    David
    May 4, 2004
  4. Sean McIlroy

    drag and drop graphics in tkinter?

    Sean McIlroy, Nov 23, 2004, in forum: Python
    Replies:
    5
    Views:
    660
    Lonnie Princehouse
    Nov 23, 2004
  5. shackman
    Replies:
    0
    Views:
    2,101
    shackman
    Aug 16, 2006
Loading...

Share This Page