From: Thorsten R. <tho...@iv...> - 2000-08-04 12:05:53
|
Hi *, when using a GLCanvas combined with JPanels in a JFrame I'm getting a problem: All JPanels and the GLCanvas are located on the same position. With <component>.setVisible() I can get the wanted component in front of the others. When the GLCanvas is visible it's on top till its hidden, independent of other setVisible() calls. That's OK and works fine! But when the GLCanvas is shown, before it renders the first frame, the canvas ist cleared white for a short moment. And when the GLCanvas ist hidden, the freed space is first cleared with the "Windows-Background-Color" before the JPanel is repainted. Solutions like overwriting update() and paint() of JFrame didn't work. Any other solutions ? Who the hell is clearing the canvas with the background color ??? regards, Thorsten |