In an attempt to tidy up my (very basic) UI code i have split the button and text field into two seperate classes, with a main to create a frame and run. The button needs to