A DESCRIPTION OF THE PROBLEM :
It would be great if TabPane had an additional 'menuItemFactory' property for the menu items displayed in the drop-down when not all tabs can be displayed. Currently it's not possible to have custom graphics in this dropdown, and if one is set on the Tab itself which is not either a ImageView or Label it will not be visible. Looking at the code here there is currently only a hacky fix which just clones the graphics used. Having a property similar to the various cellFactory properties in ListView, TableView etc. would allow much greater customization.
See also
https://mail.openjdk.org/pipermail/openjfx-dev/2025-April/053306.html
https://mail.openjdk.org/pipermail/openjfx-dev/2025-April/053338.html
It would be great if TabPane had an additional 'menuItemFactory' property for the menu items displayed in the drop-down when not all tabs can be displayed. Currently it's not possible to have custom graphics in this dropdown, and if one is set on the Tab itself which is not either a ImageView or Label it will not be visible. Looking at the code here there is currently only a hacky fix which just clones the graphics used. Having a property similar to the various cellFactory properties in ListView, TableView etc. would allow much greater customization.
See also
https://mail.openjdk.org/pipermail/openjfx-dev/2025-April/053306.html
https://mail.openjdk.org/pipermail/openjfx-dev/2025-April/053338.html
- links to
-
Review(master) openjdk/jfx/1773