<Swing Dev> [16] RFR 8136363: Nimbus-LaF: background color cleared when setting component name of JToolBar
Kumar Abhishek
kumar.z.abhishek at oracle.com
Wed Jul 29 16:21:11 UTC 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200729/7d328e7b/attachment.htm>
More information about the swing-dev
mailing list