<Swing Dev> Review Request of 8146321: [macosx] JInternalFrame frame icon in wrong position on Mac L&F if icon is not ImageIcon
Avik Niyogi
avik.niyogi at oracle.com
Thu Jan 14 04:49:57 UTC 2016
Hi All,
Kindly review the bug fix for JDK 9.
Bug:
https://bugs.openjdk.java.net/browse/JDK-8146321 <https://bugs.openjdk.java.net/browse/JDK-8146321>
Webrev:
http://cr.openjdk.java.net/~aniyogi/8146321/webrev.00/ <http://cr.openjdk.java.net/~aniyogi/8146321/webrev.00/>
Issue:
Under the Mac Look&Feel, if an icon type other than an ImageIcon is used in JInternalFrame.setFrameIcon(),
the icon will show up in the wrong position.
Cause:
the "instanceof Icon" was not checked for. Also, customs ImageIcon with color fill (and no image URL) which would
have resulted in null value for resized ImageIcon image was not well handled.
Fix:
All places in Aqua LAF where "instanceof Icon” (and not just ImageIcon class) is required,
inputs were added after significant analyses.
Check for null for getImage was done to remove a Null Pointer Exception.
With Regards,
Avik Niyogi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160114/b88af8d3/attachment.html>
More information about the swing-dev
mailing list