File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes RTFEditorKit - underline not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "RTFEditorKit - underline not working" Watch "RTFEditorKit - underline not working" New topic

RTFEditorKit - underline not working

chris gar
Ranch Hand

Joined: Jul 20, 2002
Posts: 45
I'm using RTFEditorKit to read rtf files and display on reports. I know the kit it typically used for GUI - but I'm not sure else how to read and display rtf files. I'm reading the rtf files and displaying the text on reports via Jasper reports.

Underline, bold and italic text is not recognized. the actual text prints, but the style is not included. I can see control characters like /ul and when I print the Abstract document it shows up.

but for some reason it wont display on the output.

a.) Does anyone know how I can get the styles to work?

b.) Is there a better way to go about this?

I agree. Here's the link:
subject: RTFEditorKit - underline not working
jQuery in Action, 3rd edition