Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes drag and drop in the same JList and more... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "drag and drop in the same JList and more..." Watch "drag and drop in the same JList and more..." New topic
Author

drag and drop in the same JList and more...

david zhang
Greenhorn

Joined: Oct 12, 2003
Posts: 27
Hi, I have made numerous attempts trying do the following two things but failed and could not find any related solution from others (in this forum, there are 3 posts similar to mine but either there is no answer or
answer is wrong):
1. Use mouse to drag elements of a JList to a different location
of the SAME JList. That is, I can use mouse to move an element up
down.
2. Drag an element from ANOTHER JList and drop it in my JList and put
the dropped element in the mouse drop position rather than at the
END of my JList? I found a few examples simply put the dropped
element at the end.
Any information, answer or pointer will be greatly appreciated!
Regards,
David
david zhang
Greenhorn

Joined: Oct 12, 2003
Posts: 27
found this link and got everything solved.
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&th=7a86e4961220b3ce&rnum=1
david zhang
Greenhorn

Joined: Oct 12, 2003
Posts: 27
found this link and got everything solved.
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&th=7a86e4961220b3ce&rnum=1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drag and drop in the same JList and more...
 
Similar Threads
onMouseUp in Safari
Drag and Drop
Using Drag and drop with JLists to fire an event
Drag and drop between a JList and a header table
JTree - drag and drop inside one tree - Java 1.6