Closed Ejdzyn closed 2 years ago
Hi, I want to change background color of disabled button but its always static color, white by default.
Tried to remove Button.disabledBackground from UIManager but didnt work.
I want some disabled buttons to have orange background and some to have red color f.e. It can be changed without look and feel
Use styling:
button.putClientProperty( "FlatLaf.style", "disabledBackground: #ff0000" );
Wow it works
Thanks a lot!
Hi, I want to change background color of disabled button but its always static color, white by default.
Tried to remove Button.disabledBackground from UIManager but didnt work.
I want some disabled buttons to have orange background and some to have red color f.e. It can be changed without look and feel