HTML Printing

Ok, to take this one step further, I now have to write to the clipboard. Looking at the Java API, I have to use java.awt.datatransfer.Clipboard, but need an instance to pass in as the third argument. getDefaultToolkit() is used to satisfy this in the getSystemClipboard code, but I don’t know what to use with setContent. Here’s what I have so far:

Faults = 'This is a fault'
from java.awt import Toolkit
from java.awt.datatransfer import DataFlavor
from java.awt.datatransfer import Clipboard

clipboard=Toolkit.getDefaultToolkit().getSystemClipboard()
Clipboard.setContents(Faults,clipboard)