Added MainFrame for java Swing.