I have followed the java base examples to create a 3d viewer in java. When this viewer is used inside a Frame or JFrame this works fine. However when I try to put the same JPanel inside a JInternalFrame I get some strange behaviour. Initially the viewer is displayed, but when the frame is moved the viewer diappears and is replaced by a grey background. Additionally, my JMenubar will not display above the viewer. Does anybody know why this is happening so that I can find a fix? Occasionally, I get some error with wglMakeCurrent - error code 6.
I think this is an important issue for people trying to write CAD-type applications which want to display 3d views with other frames for buttons, text windows etc. So I hope somebody can help?
David G Bramall