src/main/java/com/spinyowl/legui/component/Dialog.java
private void initialize(Vector2f size, String title) {
    getTitleTextState().setText(title);
    if (size != null) {
      setSize(size);
    }

    this.setMinimizable(false);
    this.getListenerMap().addListener(WidgetCloseEvent.class, new DialogCloseEventListener(this));
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Dialog.class).applyAll(this);
  }
/**
   * Used to initialize dialog with title and size
   *
   * @param size  size of component.
   * @param title dialog text.
   */
Used to initialize dialog with title and size
@param size  size of component.
@param title dialog text.
Used to initialize dialog with title and size @param size size of component . @param title dialog text .
private void initialize(Vector2f size, String title) {
    getTitleTextState().setText(title);
    if (size != null) {
      setSize(size);
    }
    this.setMinimizable(false);
    this.getListenerMap().addListener(WidgetCloseEvent.class, new DialogCloseEventListener(this));
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(Dialog.class).applyAll(this);
  }
private void initialize ( Vector2f size , String title ) { getTitleTextState ( ) . setText ( title ) ; if ( size != null ) { setSize ( size ) ; } this . setMinimizable ( false ) ; this . getListenerMap ( ) . addListener ( WidgetCloseEvent . class , new DialogCloseEventListener ( this ) ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( Dialog . class ) . applyAll ( this ) ; }
Used to initialize dialog with title and size
 @param size  size of component.
Used to initialize dialog with title and size @param size size of component .