How do you copy an interger array to the clip board? What I found was to copy a StringSelection into the clipboard as shown in the below code. But what I need to do is to put an interger array to the clipboard.
public void copyToClipBoard()
{
Clipboard cb = getToolkit().getSystemClipboard();
StringSelection contents = new StringSelection("HI"
cb.setContents(contents, this);
}
public void lostOwnership(Clipboard cb, Transferable contents) {}
I don't know what data type I sould convert the interger array to in order to use the command
cb.setContents(contents, this);
Thanks for your time
public void copyToClipBoard()
{
Clipboard cb = getToolkit().getSystemClipboard();
StringSelection contents = new StringSelection("HI"
cb.setContents(contents, this);
}
public void lostOwnership(Clipboard cb, Transferable contents) {}
I don't know what data type I sould convert the interger array to in order to use the command
cb.setContents(contents, this);
Thanks for your time