maxNumberOfLines is now a member variable of textbox instead of method argument