Answer the question
In order to leave comments, you need to log in
How to make a column full width?
I created a table in javafx and filled it with columns, but how to make the column always be the entire width of the table ??
TableColumn column = new TableColumn("asda");
tableView.getColumns().add(column);
Answer the question
In order to leave comments, you need to log in
One column will stretch to full width.
TableView table = new TableView<Object>();
table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
TableColumn column = new TableColumn("asda");
table.getColumns().add(column);
bind column width to table width like column.prefWidthProperty().bind(tableView.widthProperty())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question