Update canvas.java