I’m using the convenient
LassoComponent class, but I’m getting a heavy performance hit every time I use it. After some profiling and debugging, I see that it’s because the lasso, on every repaint, calls a full parent repaint, triggering
paintEntireComponent() on the whole desktop.
Is there some way I can avoid this?
I solved previous performance hits on my own components by using the
setBounds() method to trigger repaints, and avoiding calling
repaint(). I hope something similar can be done here.
The performance hit is quite bad so I’m considering overriding or creating my own lasso.