line highlighting in JTextArea

Respect to all Java gurus,

I am developing a TextEditor application ahead ofMicrosoft Windows Notepad. i have tried hard to get a method that can set a caret to a chosen line from an inputDialog and highlight it?

Any suggestions and coding guide are welcome.

thanx >>> Bornix

[320 byte] By [Bornixa] at [2007-11-27 1:57:54]
# 1
see highlighter http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextArea.html http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/JTextComponent.html#getHighlighter() http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/Highlighter.html
java_2006a at 2007-7-12 1:33:58 > top of Java-index,Java Essentials,Java Programming...
# 2
I think i will try to cahnge the text editor and use the a JTextPane instead of JTextArea since i want styled text in my project.thanks for your contributions
Bornixa at 2007-7-12 1:33:58 > top of Java-index,Java Essentials,Java Programming...