javafx - make ListView not selectable via mouse

前端 未结 7 2177
执念已碎
执念已碎 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 );
    
    0 讨论(0)
提交回复
热议问题