I am coding in FXML scenebuilder and I am trying to get my TableView(in borderpane center) and put it in a PDF. I am using iText and create a PDF, put some image to it but I can't get my Borderpane's data or TableView.
@FXML
TableView<ItemList> table;
@FXML
TableColumn<ItemList, String> tableName;
@FXML
TableColumn<ItemList, String> tableCount;
@FXML
TableColumn<ItemList, String> tablePrice;
@FXML
TableColumn<ItemList, String> tableTotal;
@FXML
private BorderPane dneme;
My table is in the center of borderpane. I tried dneme.getCenter().getScene().getWindow() or table.getScene().getWindow() I tried it without getCenter(), getScene() or getWindow() too.
My program has a table, data will add in to it and I only want get my table and put it to PDF. Only table is in the center of borderpane. enter image description here