Hi I want to set Font on text inside in column in tablewView. How I can do it in Java this is my code. Thanks for help.
private final TableView<AnotherBus> table = new TableView<>();
TableColumn busNumberCol = new TableColumn("Linia");
busNumberCol.setCellValueFactory(
new PropertyValueFactory<>("busNumber"));
busNumberCol.getStyleClass().add("Times New Roman,40");
tb.getStyleClass().add("Times New Roman");
TableColumn courseCol = new TableColumn("Kierunek");
courseCol.setCellValueFactory(
new PropertyValueFactory<>("nameBusStpo"));
courseCol.setPrefWidth(200);
courseCol.getStyleClass().add("Times New Roman");
TableColumn departureCol = new TableColumn("Odjazd");
departureCol.setCellValueFactory(
new PropertyValueFactory<>("busTimetable"));
table.setItems(list);
table.getColumns().addAll(busNumberCol, courseCol, departureCol);
table.setPlaceholder(new Label(
""));