From 26b7878c3b47f76e55195a8682fd7dce04d83ea8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 21 Jun 2008 03:04:14 +0000 Subject: 2nd big refactoring. Goals are orthogonal components for: - OS Windowing system - NEWT, X11, Windows, MacOsX - GL Windowing GLUE - EGL, GLX, WGL, CGL - GL profiles - core and util packages - generate all Java components from any platform All above goals are achieved. TODO: - Native compilation fix and test - Check/Fix Win32, MacOSX and the mobile devices - .. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1670 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/NativeWindowFactory.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/classes/javax/media/opengl/NativeWindowFactory.java') diff --git a/src/classes/javax/media/opengl/NativeWindowFactory.java b/src/classes/javax/media/opengl/NativeWindowFactory.java index c206adb78..cdd850322 100644 --- a/src/classes/javax/media/opengl/NativeWindowFactory.java +++ b/src/classes/javax/media/opengl/NativeWindowFactory.java @@ -95,14 +95,7 @@ public class NativeWindowFactory { * hence the independency to the java.awt.* package. */ public static boolean isAWTComponent(Object target) { - Class clazz = target.getClass(); - do { - if(clazz.getName().equals("java.awt.Component")) { - return true; - } - clazz = clazz.getSuperclass(); - } while (clazz!=null); - return false; + return GLProfile.instanceOf(target, "java.awt.Component"); } /** -- cgit v1.2.3