name

Sets name - the key components are looked up by in tests and automation; null clears it.

Return

this modifier with the name declared on it.

Parameters

name

a label the component carries for lookup alone: Swing never displays it and never requires it to be unique.

See also