dcsimg
Changing style of selected text in Text Area componet of awt
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashok_Paliwal
Posted On:   Thursday, April 19, 2001 05:20 AM

Hi!

I am trying to change the text style like Bold, Italic or changing font of selected text in Text Area componet of java awt package. But if i am trying to apply style to selected text, it is applying to whole text in text area component. Please, can u send me the solution of this problem.

Re: Changing style of selected text in Text Area componet of awt

Posted By:   John_Zukowski  
Posted On:   Saturday, May 5, 2001 12:30 PM

Text areas only support a single font for all its content. If you need multi-attributed text, you need to use another component. There is NONE in the core AWT classes. Consider using a JTextPane in Swing.
About | Sitemap | Contact