I want to create a OnMouseOver Listener to cells of a specific column of a TableView, such that a popup window should appeared with some message, when I hover to it's cells. This is how I am creating a table and its columns.
private TableView<Stock> stockTable = new TableView<>();
ObservableList columns = stockTable.getColumns();
public TableColumn createTextColumn(String columnName, String columnCaption,BooleanProperty editingStarted) {
TableColumn column = new TableColumn(columnCaption);
column.setCellValueFactory(new PropertyValueFactory<>(columnName));
column.setCellFactory(TextFieldTableCell.forTableColumn());
return column;
}
final TableColumn nameColumn
= createTextColumn("name", "Product Name", editingStarted);
columns.add(nameColumn);
So is it possible to do it. I know how to create listeners for rows. But I found nothing on internet on listening to cells of table. Thanks in advance for any help.