TextEditor painting jank

Hey Anthony,

Thanks for weighing in! I referenced some of your forum posts when reading through the component code and think that it’s generally good advice. It might be nice to hear you expand on the “why,” if you could…

Unfortunately I don’t think your suggested hierarchy changes the particular problem in this thread. The green container/component will always paint on cursor blink, even if setOpaque is set on the TextEditor. This is because at the point where the green/blue containers are siblings, there’s no recursion into the children to understand if anything is opaque.

It’s true that setBufferedToImage (true) will mean a cached image will be painted instead of the component’s paint method and children. But, as Jimmi pointed out, the entire cached image will be painted (not just the cursor’s clip bounds).