This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Format text in JTextArea" Watch "Format text in JTextArea" New topic
Author

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

Thanks,
Cathy.
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Look at the JEditorPane and JTextPane
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Format text in JTextArea
 
Similar Threads
How Do I add a vertical scroll bar to a JTextArea?
About AWTEvent!
Grammatic Control
read contents of a textarea and an uploaded file simultaneously
Help about JTextArea in applet!