<Swing Dev> RFR JDK-8213123:javax/swing/JButton/4368790/bug4368790.java fails on mac

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Wed Apr 8 12:17:59 UTC 2020


Hi All,

Please review a fix for an issue where it is seen that in macOS, JButton 
remains pressed even when the focus is lost.

This was fixed inJDK-4368790: 
<https://bugs.openjdk.java.net/browse/JDK-4368790>JButton stays pressed 
when focus stolen by calling setPressed(false) for BasicButtonListener 
created in BasicButtonUI#installListener for other L&Fs, but it fails 
for default AquaL&F in macOS.

The same needs to be done in AquaButtonListener created in 
AquaButtonUI#installListener for mac

Bug: https://bugs.openjdk.java.net/browse/JDK-8213123

webrev: http://cr.openjdk.java.net/~psadhukhan/8213123/webrev.0/

Regards
Prasanta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200408/56f804d8/attachment.htm>


More information about the swing-dev mailing list