<Swing Dev> [16] RFR 8136363: Nimbus-LaF: background color cleared when setting component name of JToolBar
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu Jul 30 21:41:19 UTC 2020
Hi, Kumar.
I suggest improving the test a little bit. The test in the description of the bug checks
all Swing components, it will be useful to do the same. Also, can you please iterate
over all installed L&F and test each.
On 29.07.2020 09:21, Kumar Abhishek wrote:
> Hello,
>
> Could you review a fix for jdk16, please?
>
> Webrev: http://cr.openjdk.java.net/~dmarkov/8136363/webrev/
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8136363
>
> Problem Description:
>
> Nimbus-LaF: background color cleared when setting component name of JToolbar
>
> Fix:
>
> The updatestyle method of the synthlook&feel is called to update style for the regions of every component.
>
> In this case ,style for the regions of JToolbar (*Region.TOOL_BAR_CONTENT*and*Region.TOOL_BAR_DRAG_WINDOW*) was getting cleared and so the background color was getting cleared.
>
> I have updated the correct style for the regions of JToolbar.
>
> Thanks,
>
> Abhishek
>
--
Best regards, Sergey.
More information about the swing-dev
mailing list