File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Look at the JEditorPane and JTextPane


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Format text in JTextArea
 
Similar Threads
About AWTEvent!
Grammatic Control
read contents of a textarea and an uploaded file simultaneously
Help about JTextArea in applet!
How Do I add a vertical scroll bar to a JTextArea?