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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Apr 8 20:38:39 UTC 2020


Hi, Prasanta.

Could you confirm that other non-default L&F does not have this bug, probably it would be good to check that in the test?


On 4/8/20 5:17 am, Prasanta Sadhukhan wrote:
> 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


-- 
Best regards, Sergey.


More information about the swing-dev mailing list