My GLCanvas is into a JPanel and this JPanel is in a JFrame

.
I use JDK 1.6_u32 and I tried to use JInternalFrame ,but I found when I add JInternalFrame first, then add GLCanvas into JFrame ,the JInternalFrame can show above the GLCanvas.If I add the GLCanvas first,the JInternalFrame sometimes still below the GLCanvas.