Currently there is a bug which prevents you from getting anything other than String data
from the clipboard. Please look at -
What this means is that you could not use any
binary format or serialized Java class (e.g.
javax.swing.text.SimpleAttributeSet etc) as clipboard data.
This however does not mean you could not do what you want to do.
There are many text based attribute markup formats - the most well-known of them being the HTML. Thus you could encode the font information into a
You should also set the DataFlavor mime type to "text/html" or may be "text/custom-html".
You will have to do converion from/to the