Windows

Hi Guys,
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?

Comments

  • : Hi Guys,
    : 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?
    :
    :
    I tried a workaround. I used removeAll() to clear the contentpane, recreated the components and called validate(). It seems to work.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion