Hi.
Please help me and sorry for my dumb question.
I use NetBeans 6.1 in development.
I have JFrame Client. In that JFrame when I click on button StartGame there appears another JFrame ChessGame. It has some Swing controls and some painting.Painti ng is done directly on JFrame. I am not sure,but probably this is called child window.
Now I want this child window to be repainted well. I set event listeners on all possible relevant events that Swing gives me -WindowOpened,Wi ndowDeiconified ,WindowActivate d,WindowDeactiv ated in all of which I included call to update(this.get Graphics()). It seems like it hasn't helped one bit.Before I added this code ChessGame window was sometimes repainted and sometimes not when deiconifing.The same is true after I added the code.
Please help me and sorry for my dumb question.
I use NetBeans 6.1 in development.
I have JFrame Client. In that JFrame when I click on button StartGame there appears another JFrame ChessGame. It has some Swing controls and some painting.Painti ng is done directly on JFrame. I am not sure,but probably this is called child window.
Now I want this child window to be repainted well. I set event listeners on all possible relevant events that Swing gives me -WindowOpened,Wi ndowDeiconified ,WindowActivate d,WindowDeactiv ated in all of which I included call to update(this.get Graphics()). It seems like it hasn't helped one bit.Before I added this code ChessGame window was sometimes repainted and sometimes not when deiconifing.The same is true after I added the code.
Comment