File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes JTextComponent: Making certain text within the component as Bold Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTextComponent: Making certain text within the component as Bold" Watch "JTextComponent: Making certain text within the component as Bold" New topic
Author

JTextComponent: Making certain text within the component as Bold

Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
Dear Readers,
I wanted to know if it is possible to bolden only certain text within any JTextComponent instances. I tried doing it in JTextField and JTextArea but unfortunately it emboldens the entire text.


With Best Regards,
Shyam Prasad Murarka
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Moving to the Swing forum for expert attention.
[ April 11, 2006: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextComponent: Making certain text within the component as Bold