Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Partial selection of Text in textArea

 
samander samander
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am making chat application and i have one TextAtea than i want to change style,color,fontsize of selected text.
but my chat application change whole text properties i want only for selected text plz give some formate or code for that.

Thanx
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had the same requirement and Javaranch.com once again helped me, so let me pass the knowledge which I have to you. This link will help.Java Almanac What you have to do is that to put this coding which is given in this page and call that method with different parameters when you want to change the font type, size, color etc.
Hope I gave the solution for your problem.
CHEERS
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Swing/AWT forum where TextArea stuff is discussed pretty often.

Please post your replies there, thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic