On Thu, 20 Nov 2025 09:33:44 GMT, Prasanta Sadhukhan <[email protected]> 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 Marked as reviewed by azvegint (Reviewer). test/jdk/javax/swing/plaf/metal/MetalFocusBug.java line 55: > 53: public static void main(String[] args) throws Exception { > 54: // Set Metal L&F > 55: > UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); EDT? ------------- PR Review: https://git.openjdk.org/jdk/pull/28408#pullrequestreview-3503195205 PR Review Comment: https://git.openjdk.org/jdk/pull/28408#discussion_r2558489612
