From cb83142365ddfc59fb2e494c207cba5c5a1cf3c6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 25 Nov 2010 03:24:08 +0100 Subject: GLCanvas: Refine access modifiers --- src/jogl/classes/javax/media/opengl/awt/GLCanvas.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/javax') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java index aeb698c81..d4c256165 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java @@ -165,7 +165,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable { public void destroyMethod(); } - protected final static Object addClosingListener(Component c, final DestroyMethod d) { + /* package private */ final static Object addClosingListener(Component c, final DestroyMethod d) { WindowAdapter cl = null; Window w = getWindow(c); if(null!=w) { @@ -181,7 +181,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable { return cl; } - protected final static Window getWindow(Component c) { + private final static Window getWindow(Component c) { while ( c!=null && ! ( c instanceof Window ) ) { c = c.getParent(); } @@ -328,7 +328,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable { } } - protected void dispose(boolean regenerate) { + private void dispose(boolean regenerate) { if(DEBUG) { Exception ex1 = new Exception("Info: dispose("+regenerate+") - start"); ex1.printStackTrace(); @@ -687,7 +687,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable { } } } - DisposeAbstractGraphicsDeviceAction disposeAbstractGraphicsDeviceAction = new DisposeAbstractGraphicsDeviceAction(); + private DisposeAbstractGraphicsDeviceAction disposeAbstractGraphicsDeviceAction = new DisposeAbstractGraphicsDeviceAction(); class InitAction implements Runnable { public void run() { -- cgit v1.2.3