I want to change how the all column's text looks like which is a SimpleStringProperty
. I want to change font style,font name, font size etc... Below my creation of TableView
TableView<User> statisticsTable = new TableView<>();
//statisticsTable.setPrefHeight(DefaultValues.TE);
TableColumn nameCol = new TableColumn("Name");
nameCol.setMinWidth(240);
nameCol.setCellValueFactory(
new PropertyValueFactory<User, String>("fullName"));
nameCol.setResizable(false);
TableColumn todayTicketsCol = new TableColumn("Today Assigned Tickets");
todayTicketsCol.setMinWidth(160);
todayTicketsCol.setCellValueFactory(
new PropertyValueFactory<User, Integer>("totalOnTechnicalStudies"));
todayTicketsCol.setResizable(false);
TableColumn totalTechnicalStudiesCol = new TableColumn("Total Technical Studies");
totalTechnicalStudiesCol.setMinWidth(160);
totalTechnicalStudiesCol.setCellValueFactory(
new PropertyValueFactory<User, Integer>("totalAssignedTicket"));
totalTechnicalStudiesCol.setResizable(false);
usersForStatistics = FXCollections.observableArrayList(usersList);
statisticsTable.getColumns().addAll(nameCol,todayTicketsCol,totalTechnicalStudiesCol);
statisticsTable.setItems(usersForStatistics);