JavaGaming.org

July 30, 2010, 09:31:28 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: [1]   Go Down
Print
Author Topic: GLCanvas - Render on request - flickering  (Read 172 times)
0 Members and 1 Guest are viewing this topic.
Nitram
JGO n00b
*
Offline Offline

Posts: 1


View Profile
« on: March 15, 2010, 05:15:52 am »

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
Logged
Pages: [1]   Go Up
Print
 
Jump to: