I have no idea how to get an Applet to repaint.
I have added a Canvas with a working paint method.
If I obscure the applet and then uncover it, the applet paints all its bits including the canvas.
If I resize the applet, ditto.
But none of the following methods when invoked on the Applet instance have any effect:
- doLayout()
- validate()
- invalidate()
- repaint()
although I’ve only tried them individually, not together. And I haven’t touched the paint/repaint/update methods on Applet, so they are all vanilla.
Presumably there’s something obvious I’m missing, but I’ve spent 1 hour searching the API docs, trying things, and failing (took a while to prove that all the other bits were working and isolate it down to this).
Long time since I’ve needed to do this, and it reminds me how much I detest the AWT and how insanely confusing its paint system is :(.