Hello.
Can I add a pretty line separator on JTextArea ?
...
JTextArea t;
...
t.append("----------------/n");
// the above is just a simple string - it there any other way to add a
pretty line separator ?
Thanks :)
Andrew Thompson - 19 Aug 2007 08:10 GMT
>Hello.
>Can I add a pretty line separator on JTextArea ?
Other than as you demonstrated, no.
JEditorPane (as opposed to the unstyled JTextArea) will
understand HTML though, so you might use an <hr>
element.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Roedy Green - 19 Aug 2007 10:19 GMT
>// the above is just a simple string - it there any other way to add a
>pretty line separator ?
You can insert HTML. then you could use <hr>. I have never tried it
though. see http://mindprod.com/jgloss/jtextarea.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com