i've been trying, without success, to maintain the style of the text in a jTextPane when it is copied into the clipboard. what I want is to copy the text in a jTextPane with styles (eg: bold, italic) and to be able to paste it into MS WORD with all those styles. if the text is bold in jTextPane then it must be bold in the word document when pasted.
the text in the TextPane is styled with a StyledDocument.
i'd be grateful for any help you guys could give me.