I have an applet consisting of several panels. The bottom panel is a graph area and is added when a button is pushed. The problem is that when I add it, it only draws some of the lines I specified, and the panels aren't properly aligned. When I resize the Frame the applet is showing in, the entire thing is drawn and the panels align themselves. The same is the case if I run it in a browser, i.e. it only works properly AFTER I resize the browser.
I have tried repaint(), update(), and paint() on both the applet and the panels involved, but nothing changes.
Supplying the code is possible but will take a little work since I have to extract it from a larger context, but I'll do it if there is no other way.