I want to customize the button of the tableview, but it is empty when I get the show-hide-columns-button in the initialize method. There is a way to get the show-hide-columns-button.
@FXML
private TableView tableView;
@Override
public void initialize(URL location, ResourceBundle resources) {
tableView.setTableMenuButtonVisible(true);
final Node showHideColumnsButton = tableView
.lookup(".show-hide-columns-button");
System.out.println(showHideColumnsButton);
}