code: public Panel addComponent(Component component, LayoutData layoutData) {
          if(component != null) {
              component.setLayoutData(layoutData);
              addComponent(component);
          }
          return this;
      }
docs: This method is a shortcut for calling:
  <pre>
  {@code
  component.setLayoutData(layoutData);
  panel.addComponent(component);
  }
  </pre>
  @param component Component to add to the panel
  @param layoutData Layout data to assign to the component
  @return Itself