From: Virgil W. <vir...@ra...> - 2000-04-26 21:37:58
|
> Hi, I am new to GL4Java so I am having a few problems with GLAnimCanvas > among others. > > You see I have a Panel which contains the start screen and a panel which > contains the GLAnimCanvas plus others. > > When I press a button on the Start Panel it calls calls removeAll() and adds > the panel which contains GLAnimCanvas(game Panel) then I start it running. > This works. Now when I press another button it does the same thing except > swapping the game Panel for the start Panel. This works however if I then > try to repeat that process from then on the GLAnimCanvas isn't displayed, > any ideas. I'm totally guessing here, but I'll bet the native window handle might go invalid when you remove your game panel. You might instead try using a cardlayout layoutmanager to toggle between your game and start panel. I've never tried to put an AWT heavy-weight component on top of a GLCanvas, so I'm not even sure if this would work. Btw, I use windows 2000 with a leadtek geForce but don't seem to experience the system restarts (under any vm). > > > My System is Windows 2000 with a Creative TNT2 Ultra using JDK 1.2.2 and > Swing when I am developing or MS VM when not. > > Live Long and Prosper > ICQ - 45835769 > > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup > |