Java-Gaming.org
Java4K - to go         Javadoc:
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, peek at the official java tutorials or join us at irc: #jgo.
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  GLCanvas - Render on request - flickering  (Read 501 times)
0 Members and 1 Guest are viewing this topic.
Offline Nitram

JGO n00b
*

Posts: 7



« on: 2010-03-15 08:15:52 »

Hello,

I have a pretty nasty problem that does not go away.
I'm using a GLCanvas to render the OpenGL graphics to a pure AWT window upon request. The Canvas is a child of a Scrollpane and when ever AWT request redrawing the element, the OpenGL graphics are redrawn. Thats the part that works. How ever the graphics on the Canvas flicker. It looks like they are drawn and removed again shortly after.
I tried -Dsun.awt.noerasebackground=true to remove the problem. It worked, how ever it leads to major problems at the rest of my GUI. There are buttons within Panels with floating layout. Those move when the window is resized and then they leave traces on the background of the window.

Any ideas how to solve this?
Or is there any code needed to make it clearer?

Nitram
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.082 seconds with 21 queries.