fixing error MainFrame.java