• Post Reply Bookmark Topic Watch Topic
  • New Topic

TextPane Color  RSS feed

Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I have a textpane in which text is set.
for eg: "qwertui io@io gjhgjk @ghghj@ hggj"
Which is set in the textpane with html tag so for characters i have set black foreground & for special symbol @ i have set white .
Since i have set textpane background as white this @ symbol won't be visible & i don't need it to be visible among other characters that's y i have given white foreground for @ symbol.
My pbm is
during mousedrag i set the background of textpane(for textselected portions)using styleconstants with yellow color.So when this is done that special character @ is visible with in black Foreground.I wanted that @ symbol character alone to remian in white foreground even when background of textpane is set as yellow during text selection.
So how could it be possible.
Neeed u'r solutions as soon as possible.
excepting replies,
with regards
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!