ScalaFX 16.0.0-R25 released

19 views
Skip to first unread message

Jarek

unread,
Sep 18, 2021, 3:26:26 PM9/18/21
to ScalaFX Users

The main new feature of ScalaFX 16.0.0-R25 is better support for creation of cell factories. You just need to focus on the important parts, all boilerplate code is done behind the scenes. For instance, if you want to create a custom cell (for a List, Table, etc.) you just provide the custom part, here we create a Circle of a color corresponding to cell value:

cellFactory = (cell, color) => {
  cell.graphic = Circle(fill = color, radius = 8)
}

scalafx-demos have examples for all controls that support cellFactory.

More detail in the Release Notes

Reply all
Reply to author
Forward
0 new messages