/// <summary> /// Creates the peer of the canvas. This peer allows you to change the /// user interface of the canvas without changing its functionality. </summary> /// <seealso cref= java.awt.Toolkit#createCanvas(java.awt.Canvas) </seealso> /// <seealso cref= java.awt.Component#getToolkit() </seealso> public override void AddNotify() { lock (TreeLock) { if (Peer_Renamed == null) { Peer_Renamed = Toolkit.CreateCanvas(this); } base.AddNotify(); } }