Button mouseReleased action still works when button disabled

Hi
Small thing but it bugs me - If button property “Enabled” is FALSE then the code behind does not execute but when the same code is behind mouse released event handler is executes regardless Enabled property. Is it normal behaviour because it surprised me:(

Yes, this is normal. All of the mouse events work regardless of the component’s enabled status. It’s actionPerformed that requires the component be enabled.

1 Like

thanks Kevin for super quick answer