Java Gurus

siftings81

Member
Sep 3, 2001
61
0
0
Hello,
Below is a demo app I made to demostrate a problem I have with drag/drop with custom data types. I've got it working before by converting everything to strings, dragging that, then converting it back to a class, but that is messy and error prone.

It's not dropping anything, even though canImport returns true and createTransferable does return correctly. Only thing I noticed while debugging is that the transferable object, data, is null from exportDone.

Any help would be greatly appreciated.
 

znaps

Senior member
Jan 15, 2004
414
0
0
Your setValueAt() call is incorrect - it should be model.setValueAt(alist,index,selcol);
 

znaps

Senior member
Jan 15, 2004
414
0
0
No problem, it took me 2 minutes in the Eclipse debugger to find it.