Overlay Kills Content when resizing

Hi,
I am using an GLJPanel to draw my scene. And I use an overlay that draws and alpha rectangle to darken the screen sometimes (the panel). Rest is swing.



if(olay == null){
	// create the overlay object
	olay = new Overlay(drawable);
			
	// create the java Graphics 2D Object
	g2D = olay.createGraphics();
	rec = new Rectangle();
        rec.x = 0;
        rec.y = 0;
}
		

rec.width = GLController.getInstance().getViewport()[2];
rec.height = GLController.getInstance().getViewport()[3];
		
// Create a new alpha composite 
AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.75f); 

g2D.setComposite(ac); 
g2D.setColor(Color.BLACK);
g2D.fill(rec);
g2D.draw(rec);
g2D.dispose();

olay.beginRendering();
olay.draw(0,0, rec.width, rec.height);
olay.endRendering();

this looks fine until i dont resize it, then the gl panel shows white content… until the overlay is killed -> then the 3d scene is rendered again.

so what to do what to do?

kind regards
knut

solved, it had something to do with a changed drawable… or something…

good so it must be re-initiated… Lunchtime now!