Caret caret = new Caret(canvas, SWT.NONE);
Caret newCaret = new Caret(canvas, SWT.NONE);
	void setCaret () {		if (caretButton.getSelection ()) {			Caret caret = new Caret(canvas, SWT.NONE);			Font font = canvas.getFont();			caret.setFont(font);			GC gc = new GC(canvas);			gc.setFont(font);			caret.setBounds(1, 1, 1, gc.getFontMetrics().getHeight());			gc.dispose();			canvas.setCaret (caret);			canvas.setFocus();		} else {			canvas.setCaret (null);		}	}