RFR: 7131166: SynthListUI / SynthInternalFrameTitlePane updateStyle() ignores method argument

Sergey Bylokhov serb at openjdk.org
Wed Jan 11 07:55:12 UTC 2023


On Fri, 6 Jan 2023 04:42:37 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> It seems Synth has two cases of updateStyle() where its argument is not passed to the getContext() call. It seems to be an oversight as in other Synth classes, the component argument passed to updateStyle is being passed to getContext().
> 
> CI tests are ok with this change and there is no new regeression with CI tests run in NimbusL&F by default..

You can trigger the property listener method and pass some "separate" component as a source, before your change the context will be created for the list, after the change the context will be created for the "event.source". Is it possible to change the current UI style based on the context from the separate component?

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

PR: https://git.openjdk.org/jdk/pull/11875



More information about the client-libs-dev mailing list