posted 18 years ago
Hi!
I have a small problem. The user can type in text in a JTextPane. They can choose bild, italic and so on.
I must support Alignment. Certain block must be able to align center, right, left.
I don't quite know how to do this. My plan was to use a <p>Data goes here</p> tag after the user hit a carriage return. Is this the best approach?
how do I insert a <p></p>? Must i use CaretListener or is there another way?
Thanks Mathias