Detect doubleclick on row of TableView JavaFX

后端 未结 6 455
耶瑟儿~
耶瑟儿~ 2020-11-29 21:51

I need to detect double clicks on a row of a TableView.

How can I listen for double clicks on any part of the row and get all data of this row to print

6条回答
  •  眼角桃花
    2020-11-29 22:33

    I had similar situation not to detect mouse double click event on TableView. Above all samples worked perfectly. but my application did not detect double click event at all.

    But I found that if TableView is on editable, mouse double click event can not be detected !!

    check your application if TableView is on editable like this.

    tableView.setEditable( true );
    

    if then, double click event only raises on same row selected.

提交回复
热议问题