This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Format text in JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Format text in JTextArea" Watch "Format text in JTextArea" New topic

Format text in JTextArea

Cathy Song
Ranch Hand

Joined: Jul 01, 2003
Posts: 92
Hello All,

I know how to add/apply formatting to the entire text area, but do I display something like the following in a text area?

some words bold words some more words

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Look at the JEditorPane and JTextPane

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Format text in JTextArea
jQuery in Action, 3rd edition