if (!cgFound) {
return;
}
Transferable htmlTransferable = new HtmlTransferable(htmlText);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(htmlTransferable, null);
// For platforms which have a selection clipboard (such as X11), store the text there also
clipboard = Toolkit.getDefaultToolkit().getSystemSelection();