Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java 2D Graphics Drag and Drop

Thread Tools

Java 2D Graphics Drag and Drop

shawleigh17 shawleigh17 is offline
Junior Member
Join Date: Jun 2009
Posts: 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.

Attached Files
File Type: txt DragAndDrop.txt (13.3 KB, 2 views)
Reply With Quote
melita777 melita777 is offline
Junior Member
Join Date: Aug 2012
Posts: 1
hi I am having troubles with drag and drop..could you help me please?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress shackman Java 0 08-16-2006 05:34 PM
drag and drop graphics in tkinter? Sean McIlroy Python 5 11-23-2004 10:56 PM
drag and drop printing in java David Java 0 05-04-2004 01:34 AM
Drag & Drop API: get source component in drop traget 'dragOver' Oliver Klein Java 0 08-24-2003 12:01 PM
java, drag-n-drop, and macintosh Blah Blah Java 0 08-20-2003 04:38 AM