src/main/java/com/spinyowl/legui/component/Dialog.java
public void show(Frame frame) {
    this.frame = frame;
    if (this.frame != null) {
      Vector2f dialogLayerSize = new Vector2f(frame.getContainer().getSize());
      this.setPosition((dialogLayerSize.x - this.getSize().x) / 2f,
          (dialogLayerSize.y - this.getSize().y) / 2f);

      this.frame.addLayer(dialogLayer);
      dialogLayer.setSize(dialogLayerSize);
      dialogLayer.add(this);
    }
  }
/**
   * Used to show title on specified frame.
   *
   * @param frame frame to show dialog.
   */
Used to show title on specified frame.
@param frame frame to show dialog.
Used to show title on specified frame . @param frame frame to show dialog .
public void show(Frame frame) {
    this.frame = frame;
    if (this.frame != null) {
      Vector2f dialogLayerSize = new Vector2f(frame.getContainer().getSize());
      this.setPosition((dialogLayerSize.x - this.getSize().x) / 2f,
          (dialogLayerSize.y - this.getSize().y) / 2f);
      this.frame.addLayer(dialogLayer);
      dialogLayer.setSize(dialogLayerSize);
      dialogLayer.add(this);
    }
  }
public void show ( Frame frame ) { this . frame = frame ; if ( this . frame != null ) { Vector2f dialogLayerSize = new Vector2f ( frame . getContainer ( ) . getSize ( ) ) ; this . setPosition ( ( dialogLayerSize . x - this . getSize ( ) . x ) / 2f , ( dialogLayerSize . y - this . getSize ( ) . y ) / 2f ) ; this . frame . addLayer ( dialogLayer ) ; dialogLayer . setSize ( dialogLayerSize ) ; dialogLayer . add ( this ) ; } }
Used to show title on specified frame.
Used to show title on specified frame .