Bug in JOGL Application (Form Designer, GLCanvas)

  2 posts   Feedicon  
Replies: 1 - Last Post: November 12, 2009 13:25
by: Michael Bien
showing 1 - 2 of 2
 
Posted: November 10, 2009 23:25 by robinBruegger
Hi

I'm not sure where this should have been posted, since it's the first bug i found in an open source project.

Project "Type": JOGL Application (Form Designer, GLCanvas)
File: SimpleGLCanvas.java

This is the original code. With it, only one frame is rendered at the startup

@Override
public void setVisible(boolean show){
if(!show)
animator.stop();
super.setVisible(show);
if(!show)
animator.start();
}


This works much better:

@Override
public void setVisible(boolean show){
if(!show)
animator.stop();
super.setVisible(show);
if(show)
animator.start();
}


Taught this may be useful for someone else, since the fact that only one frame was rendered was very confusing for me...

Robin Bruegger
 
Posted: November 12, 2009 13:25 by Michael Bien
thank you,
the method looks a bit strange anyway Wink I will fix this for the next release.
Replies: 1 - Last Post: November 12, 2009 13:25
by: Michael Bien
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close