0

I'm trying to have row headers in my JTable which have similar behaviour to the column headers, especially for the drag and drop part.

Something like this: JTable Row Header Implementation

And when I drag the row header, it should have the same visual effect as when I drag the column header and the same result (row/column is moved).


So far, one way I thought of is to create my own custom BasicTableHeaderUI and implement the paint() method. Not sure if that will cause problems if other look and feels were used?

Community
  • 1
  • 1

1 Answers1

0

You can add D&D listener to table cells or whole table, and than pass the event to EventHandler that handles D&D events on header.

Antoniossss
  • 31,590
  • 6
  • 57
  • 99