Made AWTGLCanvas listen to its own component events

This commit is contained in:
Elias Naur 2006-04-06 21:00:43 +00:00
parent 481ffb5f16
commit 821778c655
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
if (pixel_format == null)
throw new NullPointerException("Pixel format must be non-null");
addHierarchyListener(this);
addComponentListener(this);
this.drawable = drawable;
this.pixel_format = pixel_format;
}