Im working with with 2 windows (JFrames). If window1 is in front of window2 and I change the components on window2 programatically and make window2 active using toFront(). The problem is that the section of window1 that covered window2 is not repainted when it is brought to the front.
I tried using validate() the didnt help. Any suggestions?