From: Combe, C. <C....@na...> - 2002-06-04 15:11:47
|
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. System.out.println("hello"); //Ensure GL is initialised correctly if (glj.gljMakeCurrent() == false) { System.out.print("whoops"); return; } System.out.println("made it"); any suggestions? thanks, col |