Update TheMainPanel.java