Login  Register

Re: GLCanvas in awt scrollpane drawing problems

Posted by gouessej on Jun 07, 2018; 11:54am
URL: https://forum.jogamp.org/GLCanvas-in-awt-scrollpane-drawing-problems-tp4038912p4038915.html

Hey

Mabula Haverkamp wrote
I want to use a GLCanvas in an AWT scrollpane for an image processing application.

I understand that using a GLCanvas and awt scrollpane should give me better performance than using a GLJpanel in a JScrollpane.
GLJPanel has an higher memory footprint and is slower than GLCanvas on some machines but I advise you to give it a try anyway.

If I were you, I would simply remove the scroll pane and use a combination of keys and mouse moves to scroll or resize the GLCanvas when the scrollpane viewport is resized.
Julien Gouesse | Personal blog | Website