Bug 223 - Swing components only update GL_LEFT buffer in stereo mode
Summary: Swing components only update GL_LEFT buffer in stereo mode
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2006-05-18 11:54 CEST by Sven Gothel
Modified: 2010-11-19 01:03 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:48:56 CET

---- Reported by eteq 2006-05-18 23:54:33 ----

When I create a GLCanvas with a GLCapabilties with setStereo(true), Swing
controls don't seem to all work properly.  Some of them (e.g. buttons) work
fine, but others only change the output to the left buffer of the graphics card.
 For example, a JTextBox, when generated, shows the default text in both the
GL_LEFT and the GL_RIGHT buffer, but if the text is changed, only the GL_LEFT
buffer is updated.This problem also "spreads" to other Swing components if the
GLCanvas is dragged around the screen to conver and later uncovers them - after
this, only the GL_LEFT buffer is updated.

---- Additional Comments From kbr 2006-05-19 00:44:44 ----

It is highly unlikely that anything can be done about this. The underlying
Java2D pipeline which renders the Swing controls knows nothing about OpenGL
stereo modes which is why the components are only appearing in one of the two
buffers. Even with the new fully-accelerated GLJPanel available with Java SE 6,
the underlying Java2D window is not stereo capable. We might be able to address
the latter with an RFE in the JDK.

I hope a quick resolution of this issue is not necessary. If one is then I would
strongly encourage you to look for workarounds involving drawing minimal
components using pure OpenGL.

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 223 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=223
Comment 1 Sven Gothel 2010-11-19 01:03:06 CET
Swing does it's own compositioning, ie no control