An example of use is the implementation of a terminal window, where any selection is automatically copied to the clipboard. The lostOwnership(..)
can be used to lostOwnership(..)
, so that the user knows that the selection is displayed if and only if he is currently on the clipboard. This idiom is used, for example, in rxvt
(which is not written in Java, however).
Evgeni Sergeev
source share