A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Change color of a particular text in JTextPane.
mihir maniar
Ranch Hand
Joined: Sep 09, 2003
Posts: 88
posted
Aug 07, 2005 23:20:00
0
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
posted
Aug 08, 2005 00:52:00
0
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://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Change color of a particular text in JTextPane.
Similar Threads
Wrap mode in JTextpane
JTextArea color
JTextPane Aligment
Changin font in a JTextArea
Text Plain and JTextPane
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter