how to force validation of all the components

My app can be resized externally, or it show's components at the given width, but if there is a scroll then width reduces.All this actions don't affect all the components on my screen, how do I force all the components to recalculate their preferred size?
[271 byte] By [Noaa] at [2007-11-26 18:05:26]
# 1
invalidate();validate();repaint();Regards,Stasnull
StanislavLa at 2007-7-9 5:36:03 > top of Java-index,Desktop,Core GUI APIs...
# 2

my app is in a jwindow and the app that displays it takes the contentpane of the jwindow.

I wrote a method with what you wrote and i call it any time i get the chance, but it doesn't work.

I know you hate when people write sentences like "it doesn't work" without posting code, but my code is complicated and I can't reproduce the problem with the program i planned to put here.

So to sum it up, my question is what do i need to override to be able to draw at all times what i want.

Thank you for your patience.

Noa

Noaa at 2007-7-9 5:36:03 > top of Java-index,Desktop,Core GUI APIs...
# 3

Since you can't reproduce the problem in your SSCCE, I would suggest trying

to modify the program which does have the problem to be more like the SSCCE.

That is, start commenting out code so it isn't so complex and doesn't exhibit

the problem. Then start adding code back in until the problem resurfaces. I'd

suggest in particular looking at the layout managers you are using.

JayDSa at 2007-7-9 5:36:03 > top of Java-index,Desktop,Core GUI APIs...
# 4
I meant that i cant reproduce because all this symptoms are generated by my program complexity, and i saw the my SSCCE becomes identical to my original...I'm using BoxLayout
Noaa at 2007-7-9 5:36:03 > top of Java-index,Desktop,Core GUI APIs...