How to move a row in JTable?

Hi All,

JTable provides in-built support for reordering columns(by clicking on column header and dragging it to desired location). I would like to create a similar behavior in JTable rows. That is, I should be able to select and drag a row to a particular position. Could anyone tell me how to do that?

[315 byte] By [Karthikeyana] at [2007-11-27 10:16:10]
# 1

The default behavior for columns is not so easy to implement with rows but if you look into Drag and Drop codes you just might find something worth while. Check out the following links

http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html#complex

ICE

icewalker2ga at 2007-7-28 15:44:00 > top of Java-index,Desktop,Core GUI APIs...
# 2

Eventhough the Drag and Drop API is too trickey, it gives a solution to my problem.

Thanks

Karthikeyana at 2007-7-28 15:44:00 > top of Java-index,Desktop,Core GUI APIs...