Hi thanks for reading.
Im trying to write some code that will allow me to click on a jtable's
row, and drag it to another location on that same jtable, and drop it
into place.
I extended the jtable class and tried this in it's new constructor:
//drag and drop
this.setDragEnabled(true);
this.setTransferHandler(new TransferHandler("RowMe"));
this doesn't seem to do anything... any ideas?
mrandywarner@gmail.com - 15 Nov 2005 15:32 GMT
You need a class that implements the Transferrable interface and a
TransferHandler that knows how to make a Transferrable out of the
objects in your table. It will also control how the transferrable
objects are taken and used to construct an object to insert in your
table again.