clientProperty

Sets a putClientProperty entry - the way to reach look-and-feel styling keys and accessibility hints. Each distinct key is an independent modifier slot; null removes the entry, and removing the declaration puts back the value the component carried before. Requires a JComponent target.

A look and feel may derive other properties from this entry; removing the declaration restores the entry, not what was derived from it. A declaration of the same key and value as the pass before is adopted rather than written again, since writing the value already standing announces nothing for a look and feel to answer. To have a derivation run again, use org.jetbrains.compose.swing.modifier.key.

Return

this modifier with the client property declared on it.

Parameters

key

the property key, matched by equality.

value

the value stored under key; a look and feel acts on the change the write announces, not on later changes made inside the value itself.

See also