javafx: Custom TableColumn
问题 I want to make a custom TableColumn that when in editable state it's cells will be auto complete TextField s, here is what I tried: public static <T,S> void setAutoCompleteTableColumn(TableColumn<T,S> column, List items){ column.setCellFactory(param -> { return new TableCell<T, S>(){ final TextField textField = new TextField(); @Override protected void updateItem(S item, boolean empty) { super.updateItem(item, empty); if(item == null){ setGraphic(null); }else { setGraphic(textField);