Update CanvasPanel.java