OK. eventually i got everything works for drag and drop. The trick is I have
to remove the dragged column, then insert it again with preferred index
TableView.ColumnSequence tc =
tableViewHeader.getTableView().getColumns();
TableView.Column col0 =
tableViewHeader.getTableView().getColumns().get(dragIndex);
tc.remove(col0);
tc.insert(col0, selectedIndex);
Where the dragIndex is a static parameter which got its value from
DragSource.
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/how-to-use-drag-and-drop-swap-table-columns-tp3499066p3506944.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.