Update CustomPanel.java