RTF « JTextPane « Java Swing Q&A





1. Java JTextPane RTF Save    stackoverflow.com

i have the following code trying to save the contents of a JTextPane as RTF. although a file is created in the following code but it is empty! any tips regarding what ...

2. Correctly print out a hard copy of a JTextPane with "text/rtf" content    stackoverflow.com

I'm trying to print out some simple RTF-formatted text to a laser printer using a JTextPane. The result looks fine on a software PDF printer (FreePDF XP), but the text doesn't have ...

3. Save JTextPane as RTF File    coderanch.com

What version of the JDK are you using? I know that there were a couple of things that didn't make it into RTF support originally (such as images, background color, and some alignment stuff)... though I don't remember hearing if this ever got fixed... you might want to search the bug database on Sun's site...

4. writing from jtextpane to an .rtf file    forums.oracle.com

5. Printing RTF-Text using JTextPane    forums.oracle.com

Cahadras wrote: ....It must be an internal bug of the Sun VM that causes this NullPointerException when the JTextPane class passes Font instances to JComponent.getFontMetrics(). You may be right, but I'm going to say "careful there partner" to your statement claiming that the Sun VM must have a bug. Please see this excellent web site titled "How to Ask Questions the ...

6. image, from JTextPane to RTF    forums.oracle.com