java - overrides nimbus properties -


i'm trying overrides of nimbus properties jlabel.

uidefaults labeldefault = new uidefaults();     labeldefault.put("label.font", new fontuiresource("arial", font.plain, 14));     labeldefault.put("label.foreground", new coloruiresource(210, 210, 210)); label.putclientproperty("nimbus.overrides", labeldefault);     label.putclientproperty("nimbus.overrides.inheritdefaults",false); 

for font works correctly, not color. possible change color way ? thank you.

this works:

labeldefault.put("label[enabled].textforeground", new coloruiresource(210, 210, 210)); 

Comments