Unless you modify the skin, you won't be able to highlight an individual cell on mouse-over, but you can use the renderer to paint a "selected" state for a column. One way to do this would be to create a subclass of TableView.Column and add a boolean "selected" property. Then your renderer can get a reference to the column and set an appropriate background color when "selected" = true.
Though you can't easily highlight the cell as the mouse moves over it, you can highlight the cell when the user clicks on it, since this will invoke the editor. On Sep 16, 2011, at 3:48 AM, prophe wrote: > Ok, I look at TableViewCellRenderer.... I should extend this renderer to > write my own? And how can I highlight column and cell (on mouse over) with > renderer? I see only: > > public void render(Object row, int rowIndex, int columnIndex, > TableView tableView, String columnName, > boolean selected, boolean highlighted, boolean disabled); > > Can you give me please a short example that I can understand an idea? > Thank you for your help! > > > > ----- > Thank you! > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/Cell-selection-in-TableView-tp3339330p3341276.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
