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 ; }
Creates a text area with all of the configuration that you re bound to want to do .