A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
displaying words in different fonts or colors in a textarea
bhagavatula indu sekhar
Ranch Hand
Joined: Sep 17, 2006
Posts: 34
posted
Oct 13, 2006 09:21:00
0
how can i display text in a Textarea in different colors or fonts?
how can i set the cursor postion in Textarea?
jay vas
Ranch Hand
Joined: Aug 30, 2005
Posts: 407
posted
Oct 13, 2006 10:30:00
0
Use html and the Swing/Java Html based components (google) ...
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
Oct 13, 2006 12:01:00
0
> how can i display text in a Textarea in different colors or fonts?
use a
JTextPane
> how can i set the cursor postion in Textarea?
setCaretPosition()
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: displaying words in different fonts or colors in a textarea
Similar Threads
Changin font in a JTextArea
Textbox with multiple fonts,colours,sizes
SWT: How to change fonts and colors of components?
Text Area..please help urgent
Word wrapping in Canvas !!!!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter