public static <T>T showDialog(WindowBasedTextGUI textGUI,String title,String description,int listBoxHeight,T... items){
  int width=0;
  for (  T item : items) {
    width=Math.max(width,TerminalTextUtils.getColumnWidth(item.toString()));
  }
  width+=2;
  return showDialog(textGUI,title,description,new TerminalSize(width,listBoxHeight),items);
}

public static < T > T showDialog ( WindowBasedTextGUI textGUI , String title , String description , int listBoxHeight , T ... items ) { int width = 0 ; for ( T item : items ) { width = Math . max ( width , TerminalTextUtils . getColumnWidth ( item . toString ( ) ) ) ; } width += 2 ; return showDialog ( textGUI , title , description , new TerminalSize ( width , listBoxHeight ) , items ) ; }
shortcut for quickly creating a new dialog
