aspose file tools
The moose likes Swing / AWT / SWT and the fly likes displaying words in different fonts or colors in a textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "displaying words in different fonts or colors in a textarea" Watch "displaying words in different fonts or colors in a textarea" New topic
Author

displaying words in different fonts or colors in a textarea

bhagavatula indu sekhar
Ranch Hand

Joined: Sep 17, 2006
Posts: 34
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
Use html and the Swing/Java Html based components (google) ...
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 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 !!!!