Do not use MainFrame.setLayout() use MainFrame.getContentPane().setLayout() instead
什么意思啊。怎么解决啊。