Bug 586

Summary: Bug with GLCanvas/jScrollPane when working with GLJPanel
Product: [JogAmp] Jogl Reporter: Sylvestre Ledru <sylvestre>
Component: awtAssignee: Sven Gothel <sgothel>
Status: RESOLVED INVALID    
Severity: critical    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
jogl 608a8aaee0da2d32eeb6f9b4efe9c34013efda31
Workaround: ---
Attachments: Test case

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'.

<http://jogamp.org/git/?p=jogl.git;a=blob;f=doc/NEWT.txt;h=c97d90e30a4bf70ff57e6bc6c2e7d9b036cae772;hb=8df12ca151dfc577c90b485d4ebfe491b88e55aa>

http://jogamp.org/git/?p=jogl.git;a=commit;h=608a8aaee0da2d32eeb6f9b4efe9c34013efda31