code: public void setName(String name)
      {
          super.setName(name);
          for (int i = this.getComponentCount() - 1; i >= 0; i--)
          {
              JComponent component = (JComponent)this.getComponent(i);
              component.setName(name);
          }
      }
docs: Set this component's name.
  Make sure the text component has the same name.
  @param name The name to set.