Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8301689 | jfx21 | Ajit Ghaisas | P4 | Resolved | Fixed | b03 |
It is potentially problematic if an Application creates a list of Nodes that it passes into the ListView as the item list. This approach can cause problems with virtualized controls such as ComboBox, ListView, TableView, and TreeTableView, and is not a recommended pattern.
The documentation for ComboBox is verbose on this.
--------------------------------------------------
A recommended way of using a custom cell factory is documented for ComboBox at:
https://openjfx.io/javadoc/18/javafx.controls/javafx/scene/control/ComboBox.html
Specifically, see the section titled "A warning about inserting Nodes into the ComboBox items list", which is accompanied by a code snippet showing a
best practice:
"Putting nodes into the items list is strongly not recommended.
--------------------------------------------------
This bug is to update documentation to articulate this recommendation for other Virtualized controls such as ListView, TableView, and TreeTableView.
- backported by
-
JDK-8301689 Update the documentation of Virtualized controls to include the best practice of not using Nodes directly in the item list
- Resolved
- csr for
-
JDK-8301002 Update the documentation of Virtualized controls to include the best practice of not using Nodes directly in the item list
- Closed
- relates to
-
JDK-8280442 TreeTableView updates invisible cells
- Open
-
JDK-8277437 ListView is not refreshed when navigated through keyboard arrow keys with Narrator application
- Closed
-
JDK-8299958 TreeCell Flicker on TreeView when using Pane
- Closed
-
JDK-8090254 [ListView] page up/down navigation doesn't work, when items are large (again!)
- Closed