On Thu, 24 Mar 2022 04:57:27 GMT, Robert Lichtenberger <rlich...@openjdk.org> 
wrote:

>> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableColumnHeader.java
>>  line 650:
>> 
>>> 648:         }
>>> 649:         Callback<TableView<T>, TableRow<T>> rowFactory = 
>>> tv.getRowFactory();
>>> 650:         TableRow<T> tableRow = rowFactory != null ? 
>>> rowFactory.call(tv) : new TableRow<>();
>> 
>> When there is no row factory, we probably should just return like in line 
>> 632-633?
>
> Unlike cell factory, which always has to be present, the row factory is 
> optional and in fact most tables will not have a row factory. If we return in 
> that case, the algorithm will no longer work for these tables.
> Compare with `javafx.scene.control.skin.TableViewSkin.createCell()`.

You are right, thanks.

-------------

PR: https://git.openjdk.java.net/jfx/pull/757

Reply via email to