Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Animator within JPanel has problems  (Read 631 times)
0 Members and 1 Guest are viewing this topic.
Offline shaddam_IV

Jr. Member
**

Posts: 73


Java makes me happy the way C# doesn't!


« on: 2003-12-16 07:34:47 »

Hi all,

When I move my GLCanvas from a JFrame to a JPanel (set up with Borderlayout.CENTER) and add an animator to the GLCanvas, I get the following execeptions and no animation.  Any ideas as to what the problem is?  Is JPanel incompatible with Animator?  Thanks.

1  
2  
3  
4  
5  
6  
7  
8  
net.java.games.jogl.GLException: Surface already unlocked
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.unlockSurface(WindowsOnscreenGLContext.java:192)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.free(WindowsOnscreenGLContext.java:134)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
      at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
      at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
      at net.java.games.jogl.Animator$1.run(Animator.java:104)
      at java.lang.Thread.run(Unknown Source)

There are 10 kinds of people in the world.  Those that understand binary and those that don't.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 21 queries.