<Swing Dev> [8] Review request for 8016551: JMenuItem in WindowsLookAndFeel can't paint default icons

Leonid Romanov leonid.romanov at oracle.com
Wed Sep 25 11:49:29 UTC 2013


I'm not sure whether UIManager.getIcon("InternalFrame.closeIcon") is guaranteed to return non null with other look&feels. Also, with other look&feels the code path that draws the icon will be different. Do you think it makes sense to allow this test for other look&feels? 

On Sep 25, 2013, at 1:55 AM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:

> Hi, Leonid.
> Is the test not applicable for default l&f if WindowsLookAndFeel is not exists?
> 
> On 25.09.2013 1:29, Leonid Romanov wrote:
>> Hello,
>> Please review a one line fix for 8016551: JMenuItem in WindowsLookAndFeel can't paint default icons. I'm not sure whether such a trivial change needs a regression test, but I've written one anyway, just in case. If it's not needed, I won't commit it.
>> 
>> bug: https://bugs.openjdk.java.net/browse/JDK-8016551
>> webrev: http://cr.openjdk.java.net/~leonidr/8016551/webrev.00/ <http://cr.openjdk.java.net/%7Eleonidr/8016551/webrev.00/>
>> 
>> Thanks,
>> Leonid.
>> 
> 
> 
> -- 
> Best regards, Sergey.
> 




More information about the swing-dev mailing list