I need to detect double clicks on a row of a TableView.
TableView
How can I listen for double clicks on any part of the row and get all data of this row to print
This works for me:
table.setOnMouseClicked((MouseEvent event) -> { if (event.getButton().equals(MouseButton.PRIMARY) && event.getClickCount() == 2){ System.out.println(table.getSelectionModel().getSelectedItem()); } }); }