Bookmark Topic Watch Topic
  • New Topic

how to color a particular word in a jtextpane?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
i have searched in the google but all examples are quite complex so this is my code can you give a example code to color a particular text like "void"
so that i can learned it in a simple way
please
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Report post to moderator
You should have asked to have your thread moved here. This looks like a duplicate of this thread, so I shall close it. If I am mistaken, Jelle, Robert, Rob, feel free to reopen it.
 
    Bookmark Topic Watch Topic
  • New Topic