Java copy to clipboard

The clipboard is a set of functions and messages that enables applications to transfer data each other, Java implements the mechanism to transfer data using cut/copy/paste operations. This chapter demonstrate some examples about coping data to clipboard, clearing clipboard and reading existing clipboard contents.

Java have system clipboard and local Clipboard, system clipboard is more commonly and widely used, local Clipboard is only visible for single application or specified program.