Bug 55

Summary: GridLayout with GLCanvas behave differently on Mac
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:46:08 CET


---- Reported by aaron_08544 2003-11-25 17:09:34 ----

Hi, I was trying to add a Panel to Frame in Gears demo to show a 2x2 grid
layout. On Windows it works fine but on Mac the GLCanvas shows up in the wrong
cell. Here's the snippet of the code modified from Gears.java demo.

GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new
GLCapabilities());
canvas.addGLEventListener(new GearRenderer());
frame.add(placeInPanel(canvas));

 static Panel placeInPanel(Canvas canvas)
     {
      Panel panel = new Panel(new GridLayout(2,2));
      panel.add(canvas);
      panel.add(new Label("2"));
      panel.add(new Label("3"));
      panel.add(new Label("4"));
     return panel;
     }

-Aaron



---- Additional Comments From kbr 2005-01-30 23:56:47 ----

Sorry for not looking into this sooner. This example works fine as of Mac OS X
10.3 and JOGL 1.1 b07. I'm not sure exactly where the original problem was.




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

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