clearSelection
Clears selection and stops mouse dragging on the EDT.
This leaves terminal content, input, viewport, focus, and clipboard unchanged. Repeated clearing and clearing an unbound component are harmless.
Throws
outside the EDT or after disposal.