I have noticed that sorting by column headers in the JavaFX TableView class is turned on by default.
In my case I need to have a table view that does not allow sorting by any of the columns. Does anyone know how to do this?
If you created the table columns at own instances like this:
TableColumn<Type, Type> column = new TableColumn<>("email");
then you can easily set
column.setSortable(false);
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