5

How can I use the CSS white space property
pre-wrap with a Swing HTML text component?

2 Answers2

6

You can try https://code.google.com/p/flying-saucer/ which supports CSS 2.1 or write your own view (ParagraphView extension in the HTMLEditorKit)

StanislavL
  • 56,971
  • 9
  • 68
  • 98
  • Flying-soucer says: "It cannot be used for user-editable content; output is read-only." so I guess its not an option, since I would like to have it editable. –  Jun 14 '13 at 10:49
  • To do it by myself by creating a variant of a Kit, do you think reading core Swing by Kim Topley would be a good preparation? –  Jun 15 '13 at 11:33
1

This thread might help, they recommend using the Jaxx Framework

edit website recently went down, I'll leave the link there incase it gets brought back

here is the sourceforge link

Community
  • 1
  • 1
Stephan
  • 16,509
  • 7
  • 35
  • 61
  • [here](http://sourceforge.net/projects/jaxx/?source=navbar) is the sourceforge, any general info was on that website, or on discussions about it on websites like SO – Stephan Jul 11 '13 at 12:35