Howdy (no I am not from TX), let's assume I have a JFrame with FlowLayout. I add some components to it and do setVisible(). Later I decide to change some layout parameter eg. do setHgap() on the FlowLayout object. Now - how do I force JFrame to repaint? Thanks, Tom
Tom Niesytto
Greenhorn
Joined: Mar 02, 2000
Posts: 2
posted
0
Just to enhance the question... I tried to use update(Graphics) (after resetting hgap) and adding my own paint(Graphics) method but then the effect of changing hgap is visible only after window is resized (and after going out of focus and back to clear clutter). Sorry for trivial question but I cannot seem to find the answer in books that I have.
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
Try calling validate() (from Component) on the container.