You do not say how far along you are with this.
Here are some sources I found useful when I started
to use awt.dnd.
JavaWorld had an intro article on the package a few
years ago. Check
http://www.javaworld.com/javaworld/jw-03-1999/jw-03-dragndrop.html JDK 1.4 includes changes in the package, and the
Java Developer Connection has a Question of the Week
page devoted to that. Check
http://developer.java.sun.com/developer/qow/archive/1/ You will need to work with TableModel classes as you
go. The Tutorial covers that in How to Use Tables at
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html For a component that drags and drops onto itself,
you will need to code something like:
If you really want to customize the display during
the drag operation, look at the methods in the
DragGestureListener interface, especially dragOver().
You may be happy with the default, though.
When you drop the row into the new position, you
will have to update whatever values your system
uses to sort the rows, if any. Otherwise your system
will lose the knowledge of that new order when you
start it next time. I am guessing that the order does
matter or you would not try to allow reordering.
HTH,
Joe