I'm using JTable
+ JScrollPane
+ DefaultTableModel
.
I need to implement Drag-n-Drop on JTableHeader
. I want to drag a column header to my component and do some work depending on the column dragged.
I've tried setTransferHandler()
on my JTableHeader
but dragging is still not working.
Where can I start? Is it possible to implement DnD on JTableHeader
and save the "move-columns" feature (available 'out-of-the-box' in JTable
)?