Context menu only showing for a few TableView rows javafx fxml
问题 I have a TableView, in which i need each row to have a context menu. In this context menu there should be an Edit option and a Remove option. I wrote this class: public class ContextMenuRowFactory<T> implements Callback<TableView<T>, TableRow<T>> { private List<MenuItem> menuItems; public List<MenuItem> getMenuItems() { return menuItems; } public void setMenuItems(List<MenuItem> menuItems) { this.menuItems = menuItems; } @Override public TableRow<T> call(TableView<T> view) { final TableRow<T>