<Swing Dev> [12] RFR JDK-8213843: Changing L&F from Nimbus to Window L&F causes NPE in SwingSet2

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Nov 21 20:17:22 UTC 2018


Hi, Prasanta

On 21/11/2018 02:27, Prasanta Sadhukhan wrote:
> where caching of SynthButtonUI is done. It seems caching of button ui object causes SynthButtoUI.getMinimumSize() to be called again
> whereas without caching, the SynthButtonUI class is not invoked when Container.layout() lay outs the components when we switch L&F from nimbus to something else.

Why caching works for other looks&feels?



-- 
Best regards, Sergey.


More information about the swing-dev mailing list