i tried to use a GLCanvas together with a JTabbedPane. Therefore i've inherited
a new class from JPanel which implements GLEventListener.
If i try to add one tab as a reaction of a user interaction (pushed button) the
program terminates with "Unable to set pixel format" GLException on windows or
with "Xlib: unexpected async reply (sequence 0x2d1)!" on linux.
However, if the tabs are added in the constructor of the class that creates the
JTabbedPane, everything works well.
Ive tried to fix the problem by creating just one GLCanvas which is used for
all tabs. (rather than creating a GLCanvas for each tab) But the same probem
appeared. This approach has also revealed that if one GLCanvas is added to
various tabs, only the last tab will display the GLCanvas. All previously
created tabs will 'lose' there GLCanvas object. (GLEventListener.display() is
no longer called automatically, calling GlCanvas.display() manualy doesnt
Please let me know if you need any further information.
Thanks in advance,
nop nop nop...