This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
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()
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