Greg Brown <[email protected]> wrote:
> No, TableViews can't contain other components.

@Greg: allow me to add a small remark here since this question will come up 
again a couple of times:

See how the JavaFX team used cell renderers[1] to accomplish this. In short, a 
ListView/TreeView/TableView is assigned with a CellFactory that creates a Cell 
which contains an arbitrary component. The Cell is reused (rubberstamp 
approach) to render the visible list/tree/table cells, but the outer 
ListView/TreeView/TableView redirects all mouse and keyboard events to the 
Cell, so that the component inside the Cell gets full behavior. Using the bind 
mechanism, the programmer defines which properties of the component get updated 
whenever a new cell is displayed through scrolling. The JavaFX team managed to 
implement this both memory and time efficient.

Something you might consider for 2.0. :-)

Dirk.


Links:
------
[1] http://fxexperience.com/2010/04/new-to-javafx-1-3-cells/

Reply via email to