code: public static TextArea newTextArea (String text, int width, int height)
      {
          TextArea area = new TextArea();
          if (text != null) {
              area.setText(text);
          }
          if (width > 0) {
              area.setCharacterWidth(width);
          }
          if (height > 0) {
              area.setVisibleLines(height);
          }
          return area;
      }
docs: Creates a text area with all of the configuration that you're bound to want to do.
  
  @param width the width of the text area or -1 to use the default (or CSS styled) width.