Swing - How to imitate the why my look and feel draws disabled icons?
问题 When you set the icon for a Swing control (say a JButton ), a disabled icon with grayed-darker colors automatically generates. I want to be able to imitate the way the icon colors are changed for the disabled state, so I can create my own disabled icon with a little twist, and set it as the disabled button. Is there a way to achieve this (other then first instantiating the control and retrieving it's icon, I'm looking for more straight-forward less hacky way)? 回答1: Is there a way to achieve