Added trainControls panel to JFrame which fixed the problem of the frame
being blank.