got java.lang.UnsupportedOperationException while drag and drop a table
header column
public DropAction drop(Component arg0, Manifest arg1, int arg2,
int arg3, int arg4, DropAction arg5)
{
tableViewHeader = (TableViewHeader) arg0;
/** here get the relative x for selected header */
int xx = horizantalSplitTwo.getBounds().x;
int selectedIndex = tableViewHeader.getHeaderAt(arg3 - xx);
System.out.println("---------- drop !!!!-----------" +
selectedIndex);
/** i can see the index is correct */
TableView.ColumnSequence tc =
tableViewHeader.getTableView().getColumns();
/** i can see all columns are correct */
TableView.Column col0 =
tableViewHeader.getTableView().getColumns().get(0);
TableView.Column col3 =
tableViewHeader.getTableView().getColumns().get(3);
tc.update(3, col0);
/** Then I got exception for the update ?? **/
........
return null;
}
anything wrong in my code?
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/how-to-use-drag-and-drop-swap-table-columns-tp3499066p3506546.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.