From: Combe, C. <C....@na...> - 2002-06-04 15:40:11
|
thanks, i just tried changing it but it didn't help :-( I'll leave it as a subclass of GLCanvas. colin -----Original Message----- From: Kenneth B. Russell [mailto:kbr...@al...] Sent: 04 June 2002 16:26 To: Colin Combe Cc: gl4...@li... Subject: Re: [gl4java-usergroup] prog never returns from gljMakeCurrent() > hi, i've been trying different ways of swapping one type of GLCanvas in an > application for another. Here's the current problem - after removing a > GLAnimCanvas from the a JPanel and then adding it again, the program never > returns from the glj.gljMakeCurrent() method, it just fails silently. The > following bit of code prints "hello" and nothing else, and then the program > is frozen. Have you tried subclassing GLCanvas instead? It has fewer assumptions built into it. |