Created attachment 349 [details]
Works with the GLJPanel:
java -cp /usr/share/java/jogl2.jar:/usr/share/java/gluegen2.jar:. -DGLJPanel=1 JScrollPaneExample
Bug with GLCanvas:
java -cp /usr/share/java/jogl2.jarusr/share/java/gluegen2.jar:. JScrollPaneExample
Move the scrollbar, it will show clearly the issue.
Fails with both rc5 and rc8 under Linux
It's a Swing / AWT heavyweight (hw) / lightweight (lw) issue as mentioned here:
JScrollPane cannot mix hw/lw components, only if setting property '-Dsun.awt.disableMixing=true'.
You can use ScrollPane, or maybe a slider and fwd the panning to the GLCanvas, which could change it's GL viewport accordingly.
See git commit '8df12ca151dfc577c90b485d4ebfe491b88e55aa'.