ListBox Custom Component Infinite Repaint

While working with the ListBox and ListBoxModel I’ve noticed that my custom row-components, and all of their children, are getting infinitely repainted, which hurts performance badly (to the point it’s really noticeable).
Is it suppose to do that? and if so, are there any workarounds? because as for now the performance is just not acceptable…

That shouldn’t happen. Do you call repaint() anywhere in your code?

Are you by chance resizing your custom components (or modifying the contents of a cell) during a paint function? Doing that is probably the most common cause of this kind of behavior.

That was the problem.
But fixing this have discovered a new performance issue - every time I scroll (both horizontally and vertically), it repaints…