The right click mouse event on a TableView (and TreeTableView and I suspect Listview and TableView) widgets can not be filtered out to prevent selection. I have posted a question on StackOverflow that has an example:
http://stackoverflow.com/questions/28376103/javafx-tableview-filter-right-mouse-button-selection
I was provided with a workaround that requires me to define a custom TableCellBehavior that overrides the doSelect() method.
Before this I tried putting event filters on all associated components (table, row, cell) and none of them would filter out the right mouse event for selecting. All other mouse events were filtered.
Note also that it does not appear there are any javadocs for the TableCellSkin and TableCellBehavior classes and Google searches turn up almost nothing. It is very difficult to find any information on using these classes.
http://stackoverflow.com/questions/28376103/javafx-tableview-filter-right-mouse-button-selection
I was provided with a workaround that requires me to define a custom TableCellBehavior that overrides the doSelect() method.
Before this I tried putting event filters on all associated components (table, row, cell) and none of them would filter out the right mouse event for selecting. All other mouse events were filtered.
Note also that it does not appear there are any javadocs for the TableCellSkin and TableCellBehavior classes and Google searches turn up almost nothing. It is very difficult to find any information on using these classes.