Bug 234

Summary: Using non resizable borders causes jogl to display incorrectly
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:49:13 CET


---- Reported by torch23 2006-07-07 14:12:34 ----

When using jogl (either a GLJPanel or GLCanvas) with a non-resizable border
causes the viewport to be shifted (e.g. down and right by  2 pixels). You can
see this from the following code which shows a black border when the resizable
frame is uncommented 

SImgGLViewer glv = new SImgGLViewer(...);
JFrame fr = new JFrame();
fr.add(glv);
fr.pack();
//fr.setResizable(true);
fr.setVisible(true);

Or perhaps you need to correct for this manually?



---- Additional Comments From kbr 2006-07-08 17:01:24 ----

Something is wrong with this bug report because JFrames are resizable by
default, so commenting out a call to JFrame.setResizable(true) is a no-op. I
tried modifying the VertexProgRefract demo to use a JFrame and switched between
having it resizable and not with no change in behavior (with both JDK 1.4.2 and
5.0). This must be a problem with the application. Please investigate it further
and post on the forums rather than filing a bug if you continue to have problems.




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

This bug was previously known as _bug_ 234 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=234