htmlSB.append("</td>\n");
htmlSB.append("</tr>\n");
}
htmlSB.append("</table>\n</body>\n</html>");
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(new RichTextTransferable(htmlSB.toString(), stringSB.toString()), null);
}