used gridLayout for panel and BorderLayout for frame.  Implemented actionListener on computeButton.