How to define setOnAction for tableView rows?
问题 I am writing a program with javafx and tableView feature. My purpose is when I click on a row of this table,another window opens and shows something but I don't know how to define something like setOnMouseClicked feature for my table. I searched a lot but I coudn't find a simple way This is my existing code that define table columns and rows.(rows are defined with observable feature) package sample; import javafx.application.Application; import javafx.collections.FXCollections; import javafx