Vote count: 0
Lets say I have a simple TableView with an array of names
TableView<names> nameTable;
How do I add a even listener/ action listener so that whenever I press the delete key on my keyboard it would delete the item that is currently selected.
I think I can figure out how to do the deleting on my own I just can't figure out how to add the listener.
Thanks.
asked 48 secs ago
Add a key listener to a TableView? JavaFX
Aucun commentaire:
Enregistrer un commentaire