Bug 55 - GridLayout with GLCanvas behave differently on Mac
Summary: GridLayout with GLCanvas behave differently on Mac
Status: VERIFIED WORKSFORME
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2003-11-25 05:09 CET by Sven Gothel
Modified: 2010-03-24 07:46 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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