I have a custom JComponent that performs come complicated painting. It is set to non-opaque so that the background of its parent shows through the parts it does not paint.
I need an mouse overlay (a simple shape) that follows the mouse. It really shouldn't need to repaint the component below it every time the mouse moves. So I'm thinking to buffer the JComponent but because it's non-opaque, calling .paint(buffer) will not paint the background of the parent.
Any ideas?
Thanks in advance.