/**
* Attaches the specified Canvas3D object to the main application window.
* @param canvas the Canvas3D to attach
*/
public synchronized void attachCanvas(Canvas3D canvas) {
if (this.canvas != null) throw new DuplicateAttachmentException(ERR_CANVAS_ALREADY_ATTACHED);
canvas.addNotify(frame);
this.canvas = canvas;
}