aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Change color of a particular text in JTextPane. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change color of a particular text in JTextPane." Watch "Change color of a particular text in JTextPane." New topic
Author

Change color of a particular text in JTextPane.

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
i want to change text of a some text in JTextPane based on the name (like green,red,cyan,etc....)of a colour from a list of dropdown that i provide. how is it possible. ne alternate solutions for the same.
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
Hi mihir

Using HTML instead of plain text in JTextPane


Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change color of a particular text in JTextPane.