Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

attributed string storage  RSS feed

Madhav Patil
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to create a multiline text area component with styled text without using the swing components. What I am doing is dividing the string data into different text layouts. What i need to do is apply different styles and attributes to this data. However I am unable to deicide as to how I shud be storing the attributed string so that later on i can read it and present it in the same way it was bfore.
Also whenever there is a change to a part of the string data, for eg. if i add a character some where in between of the text area then all the text areas following that particular entry point will have to be re calculated and redrawn. Is there any other way of doing this where by i can avoid this problem.
It would be realy great if some one can guide me or give some leads on the same.
Thanks in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!