On Mon, 17 Aug 2026 17:13:37 GMT, Kevin Rushforth <[email protected]> wrote:

>> When `ContentDisplay.GRAPHIC_ONLY` is true, and text is **non-empty**: 
>> Calling `updateDisplayedText()` may result in invoking `addMnemonic();` and 
>> `getChildren().add(mnemonic_underscore);`. [ refer the method 
>> `updateDisplayedText()` , unable to share links due to Github outage ]
>> This can result in addition of an un-required node to scenegraph. 
>> 
>> The proposed change fixes the exception, but it seems to be introducing a 
>> regression.
>
> That might be OK, but I'll defer to @arapte and @andy-goryachev-oracle

alternatively, to keep the changes to a minimum, we only need to clear 
`containsMnemonic` in `updateDisplayedText()` in case of 
`ContentDisplay.GRAPHIC_ONLY` ?

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2253#discussion_r3798677777

Reply via email to