Sets the receiver's caret.
<p>
The caret for the control is automatically hidden
and shown when the control is painted or resized,
when focus is gained or lost and when an the control
is scrolled. To avoid drawing on top of the caret,
the programmer must hide and show the caret when
drawing in the window any other time.
</p>
@param caret the new caret for the receiver, may be null
@exception IllegalArgumentException <ul>
<li>ERROR_INVALID_ARGUMENT - if the caret has been disposed</li>
</ul>
@exception SWTException <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
</ul>
Sets the receiver's caret. <p> The caret for the control is automatically hidden and shown when the control is painted or resized, when focus is gained or lost and when an the control is scrolled. To avoid drawing on top of the caret, the programmer must hide and show the caret when drawing in the window any other time. </p> @param caret the new caret for the receiver, may be null
@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the caret has been disposed</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>