Add ActionListeners for the buttons which add values to the output.
For this I used two custom ActionListeners, one to add the text that is
displayed on the button and one to add some specified text.  I did this
so that buttons could be easily modified in the future.