The java.awt.datatransfer.Clipboard class

There's one constructor you can use to create private clipboards. However most of the time you'll just get the system clipboard instead:

public Clipboard(String name)

There are also three methods that allow you to get the name of the object currently on the clipboard (only one object can be on a clipboard at a time), to get the contents of the clipboard (paste), or to set the contents of the clipboard (cut or copy):

 public String getName()
 public void   setContents(Transferable contents, 
  ClipboardOwner owner)
 public Transferable getContents(Object requestor)

Previous | Next | Top | Cafe au Lait

Copyright 1997, 1999, 2006 Elliotte Rusty Harold
Last Modified April 25, 2006