Generating methods that initialize the GUI elements and layout. Put the
two methods in the constructor.