O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Local Clipboards

In Example 20-1, we manipulated the system clipboard. You can also create local clipboards by invoking the lone Clipboard constructor that takes a string as an argument. The string specifies the name of the clipboard, so that you can keep track of several clipboards if need be. As we saw in Table 20-2, the Clipboard class comes with a getName method so that you can determine which clipboard you currently have in hand.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required