Update mainFrame.java