SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); }
this.canvas = canvas; SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); }
    public SwingCanvasPeer(Canvas canvas) {        SwingToolkit.add(canvas, this);        SwingToolkit.copyAwtProperties(canvas, this);    }