hasName
Matches a component whose Component.getName equals name.
Return
a matcher whose description names this condition.
Parameters
name
the name to match; a javax.swing.JComponent is unnamed until something sets one and never matches, while the classic AWT widgets and every window construct a default name of their own, such as frame0.