aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media/opengl/NativeWindowFactory.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-21 03:04:14 +0000
committerSven Gothel <[email protected]>2008-06-21 03:04:14 +0000
commit26b7878c3b47f76e55195a8682fd7dce04d83ea8 (patch)
tree9db98703be0d205320f18e357f8ad1c814dccaf2 /src/classes/javax/media/opengl/NativeWindowFactory.java
parent32f216838432d0a67ce78061aa8a09261e3c3716 (diff)
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
Diffstat (limited to 'src/classes/javax/media/opengl/NativeWindowFactory.java')
-rw-r--r--src/classes/javax/media/opengl/NativeWindowFactory.java9
1 files changed, 1 insertions, 8 deletions
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");
}
/**