RFR: 8372103: Metal JButton doesn't show focus if no text or icon [v2]

Tejesh R tr at openjdk.org
Tue Nov 25 11:42:57 UTC 2025


On Thu, 20 Nov 2025 09:33:44 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> If a JButton in Metal Look&Feel has no text or icon, it will not show an indicator when selected.
>> Fix is made to show a focus rectangle even for empty button
>> 
>> Before fix
>> <img width="347" height="300" alt="image" src="https://github.com/user-attachments/assets/d03c64b2-8570-4585-a3a9-732a9c98d880" />
>> 
>> After fix
>> <img width="350" height="365" alt="image" src="https://github.com/user-attachments/assets/98b4e6c2-1976-4f83-bff3-5ff30a6e04d8" />
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Initialisation fix

LGTM

-------------

Marked as reviewed by tr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28408#pullrequestreview-3504677945


More information about the client-libs-dev mailing list