Highlighting Text in JTextArea

I am making a typing test program, and need to highlight/bold the current word the user is on. I have the passage tokenized, and I know which word they are on, but I am not sure how to bold/highlight a specific range of characters in a JTextArea.Thanks in advance,Mike
[289 byte] By [mike200015a] at [2007-11-27 4:01:30]
# 1
You can't use bold text in a JTextArea. You need to use a JTextPane. Read the API and follow the link to the Swing tutorial.To highlight text you use setSelectionStart/End.
camickra at 2007-7-12 9:06:13 > top of Java-index,Desktop,Core GUI APIs...