3

I want a JavaFX 2.0 TableView, but I don't want it to respond to mouse clicks. Of course, I can disable the control/widget but then it appears disabled.

tableview.setSelectionModel(null) gives the behavior I'd like, but the UI dumps stack traces complaining about the null. I can't catch the null.

I've been trying to create some kind of SelectionModel or TableViewSelectionModel that has some methods gutted, so it doesn't respond. I'm having a hard time extending these classes or implementing abstracts.

Ideas on disabling clicks on TableViews?

Scott Serr
  • 263
  • 2
  • 6

1 Answers1

4

tableView.setMouseTransparent(true)

jewelsea
  • 150,031
  • 14
  • 366
  • 406