Trying to figure out on how can i disable the reordering of table columns in javafx 2?
Here's the solution:
tblView.getColumns().addListener(new ListChangeListener() {
@Override
public void onChanged(Change change) {
change.next();
if(change.wasReplaced()) {
tblView.getColumns().clear();
tblView.getColumns().addAll(column1,column2...);
}
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With