changeset 100:bafb77d6c156

RT-18273: getTableRow returns null on first calls with custom cell renderers
author Jonathan Giles
date Thu, 01 Dec 2011 10:31:55 +1000
parents 581183c6c16a
children 35f9a4405120
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkin.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkin.java	Thu Dec 01 10:21:38 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkin.java	Thu Dec 01 10:31:55 2011 +1000
@@ -222,9 +222,10 @@
             // we must create a TableCell for each table column
             TableCell cell = (TableCell) col.getCellFactory().call(col);
 
-            // we set it's TableColumn and TableView
+            // we set it's TableColumn, TableView and TableRow
             cell.updateTableColumn(col);
             cell.updateTableView(table);
+            cell.updateTableRow(getSkinnable());
 
             // and store this in our HashMap until needed
             cellsMap.put(col, cell);