I am hoping you can help me with what I am trying to achieve. I would like to tell a JLabel or subclass thereof not to repaint when the application calls the repaint method. I know you can use setIgnoreRepaint(true); but that only works for OS level calls not from within the application.
I think you need to explain your requirement better and let us know the reasoning behind it.
What happens if you override repaint() to be a no-op?
There are no new questions, but there may be new answers.
posted 7 years ago
Hey thanks for the reply. I can't believe I didn't try that and I was looking at this the completely wrong way! The panel I was adding got repainted OVER the top of the rest and because I didn't set up the sizes properly it paints on top. Sorry for being so daft!