Changed Flowlayout to BorderLayout in MainFrame.