javafx - make ListView not selectable via mouse

前端 未结 7 2175
执念已碎
执念已碎 2020-12-20 16:33

Is there an option in JavaFX to deactivate the possibility to select the items in a ListView via mouse?

I\'d like to just display a ListView

7条回答
  •  一向
    一向 (楼主)
    2020-12-20 17:12

    You could also try:

    listview.setMouseTransparent( true );
    listView.setFocusTraversable( false );
    

提交回复
热议问题