On Wed, 24 Sep 2025 12:43:19 GMT, Ambarish Rapte <[email protected]> wrote:
> But, can we fix on a behavior that if a graphic is set on a tab, then the > same graphic would be used in overflow menu and a graphic from > menuGraphicFactory will be neglected ? Good question! We can't, if the graphic set on a tab is some sort of a custom `Node` and not the usual `ImageView` or `Label`. In this case, we can't easily clone that custom graphic such that it appears in the tab **and** in the overflow menu. Ideally, the solution would be to replace setting the graphic on a tab with setting a Supplier<Node>. This way the graphic can be supplied multiple times as needed, but it would be a breaking change and something that is not needed in 99.9% of the cases. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1773#issuecomment-3329344500
