When to call validate(),repaint() in my component
Posted on 1997-08-20
I'm writting my own component (JDK 1.1.3) by subclassing
Panel with one my Canvas extending Canvas and 2 Srcollbars in it + GridBagLayout. (I'm testing it on Solaris & Win95)
My Canvas implements paint() method - sure. That's not problem.
Everything goes well until some situations, where after drawing to my Canvas either one of the Scrollbars is mysteriously hidding or not entire myCanvas is beeing
redrawn? (Note that no resizes beeign occured and I
do repaint the whole myCanvas in paint() method -
it is not the fastest method, but it should work)
I know that repaint() call is just my ask for
paint() method to be called after some time.
Should I call one or more of the following methods ?
In which order and when ?
Can you explain me when and which ones should I call ?
Any URL with related reading is greatly welcome too.