- Button, textfield, textarea. Append the text from the textfield to a StringBuffer at each button-press. Show the growing stringbuffer in the textarea. Cut it short to 5 characters when the length exceeds 14 characters.