Issue
I have following problem.
I have a TableView where I can show the data from a file. Now when I changed the size of a column and reload another file, the size of each column is completely destroyed.
I used following code
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
My question is, is there a way to remove this ColumnResizePolicy like
tableView.getColumnResizePolicy().remove(); or .clear();
Solution
For my solution this worked fine.
tableView.setColumnResizePolicy(TableView.UNCONSTRAINED_RESIZE_POLICY);
I set this up, everytime before the new file gets loaded and after laoding I'm setting the Policy back to
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
Answered By - poisn