Answer the question
In order to leave comments, you need to log in
TableView, problem with TableColumn, what could be the problem?
In the application I have a TableView with three columns, below is the screenshot
The data is passed using :
ObservableList<Dox> doxData = FXCollections.observableArrayList()
@FXML
private TableView<Dox> doxTable;
@FXML
private TableColumn<Dox, LocalDate> dateColumn;
@FXML
private TableColumn<Dox, Double> moneyColumn;
@FXML
private TableColumn<Dox, String> descriptionColumn;
dateColumn.setCellValueFactory(new PropertyValueFactory<>("date"));
moneyColumn.setCellValueFactory(new PropertyValueFactory<>("money"));
descriptionColumn.setCellValueFactory(new PropertyValueFactory<>("description"));
doxTable.setItems(doxData);
private LocalDate date;
private Double money;
private String description;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question