I have a simple java fx application which has a table view. The table view shows some data that is sorted in a certain order. Is there a way to show the arrow(by default) in
Try
... firstNameCol.setSortType(TableColumn.SortType.ASCENDING); ... tableView.setItems(data); tableView.getColumns().addAll(firstNameCol, lastNameCol, emailCol, ageCol); tableView.getSortOrder().add(firstNameCol); ...
Also see the discussions on: Javafx: Re-sorting a column in a TableView.