How to edit ListView item when double clicked in JavaFX?

Viewed 73

I have a ListView containing note headers for my note app. I use a new window to enable user to edit the header. But I would like to make it possible for user to just double click that cell of the listview and write the new header without opening a new window or dialog. Is it possible? How can I achieve that?

1 Answers

As James_D commented you can use TextFieldListCell, but if you want more granular control, then I would recommend a custom cell factory

Related