|
Code Samples Index
These code examples and other materials are subject to Sun Microsystems, Inc.
Legal Terms
Placing Text on the System Clipboard
StringSelection ss =
new StringSelection("aString");
// The following 2 lines of code must be
// on the same line
Toolkit.getDefaultToolkit().getSystemClipboard().
setContents(ss, null);
|
Examplets provided by permission of the publisher, Addision-Wesley, and Author Patrick Chan.
Order this book from Amazon
|