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

JTextPane/MouseDragged  RSS feed

Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Friends,
In textpane i have some lines of text.In mouse dragged event i highlight the selected text's background with yellow color.But the text color remains black.
I need only one particular character to be cahnged dynamically on mouse drag(for eg if particular text selected contains character 'a' i need the that text color alone to be changed to blue & remaining characters to be remained in black & text background will be yellow.)
Exceptiong u'r replies as early as possible,
with regards,
[ April 06, 2002: Message edited by: Sonara Rahul ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!