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
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.