On Wed, 13 May 2026 20:24:15 GMT, Andy Goryachev <[email protected]> wrote:

> As far as using a `null` to indicate the default: I would very much prefer 
> that. The reason is to allow an easy revert: set the factory, and if not 
> needed anymore, set back to `null`.

I wonder if `null` could also indicate: I don't want tab graphics, so I set the 
factory to `null`.

I think developers usually would not change the tab menu graphic factory just 
to revert it back at one point. If that is needed and we have a default tab 
menu graphic factory, we could just save it in case we really need to restore 
it (which I don't think will happen).

So:


var defaultFactory = getMenuGraphicFactory();


To restore it later.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1773#issuecomment-4463798106

Reply via email to