src/main/java/com/spinyowl/legui/component/Component.java
private void changeParent(Component component) {
    Component p = component.getParent();
    if (p == this) {
      return;
    }
    if (p != null) {
      p.remove(component);
    }
    component.setParent(this);
  }
/**
   * Used to change parent of added component.
   *
   * @param component component to change.
   */
Used to change parent of added component.
@param component component to change.
Used to change parent of added component . @param component component to change .
private void changeParent(Component component) {
    Component p = component.getParent();
    if (p == this) {
      return;
    }
    if (p != null) {
      p.remove(component);
    }
    component.setParent(this);
  }
private void changeParent ( Component component ) { Component p = component . getParent ( ) ; if ( p == this ) { return ; } if ( p != null ) { p . remove ( component ) ; } component . setParent ( this ) ; }
Used to change parent of added component.
Used to change parent of added component .