Bug 586 - Bug with GLCanvas/jScrollPane when working with GLJPanel
Summary: Bug with GLCanvas/jScrollPane when working with GLJPanel
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- critical
Assignee: Sven Gothel
Depends on:
Reported: 2012-06-04 15:03 CEST by Sylvestre Ledru
Modified: 2012-09-17 05:42 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
jogl 608a8aaee0da2d32eeb6f9b4efe9c34013efda31
Workaround: ---

Test case (1.35 KB, text/x-java)
2012-06-04 15:03 CEST, Sylvestre Ledru

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvestre Ledru 2012-06-04 15:03:51 CEST
Created attachment 349 [details]
Test case

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
Comment 1 Sven Gothel 2012-09-17 05:42:38 CEST
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'.