• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with PlainView's drawUnselectedText() method

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am looking into syntax highlighting and I came across this tool XML Text Editor. The highlighting job is done in the drawUnselectedText of the PlainView component. I am trying to understand how it works, the API really doesn't give me much and I have not been able to find any useful resources that explain the specific purpose of this method. To understand this i downloaded the code and put some println statements to see when it is exactly executed and the parameters passed. But i still haven't really gotten a grasp on it. For one thing, it seems that this method is called numerous times, not just when something is typed into the text area.

I would really appreciate some input on this.

thanks

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic