Add a listener to the button. In the listener get the value to add from the button that was pressed and add it to the textfield.