aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerard Ziemski <[email protected]>2008-10-17 21:32:06 +0000
committerGerard Ziemski <[email protected]>2008-10-17 21:32:06 +0000
commit133c8f5a973c31aa8e6580eb9c1e9b26279e0edb (patch)
treead6f79f3e6969cb23a2c0cc0e9ee0f7e6c52915e /src
parentffe1122b78ca6c265d4f2a4535574b0b57135de2 (diff)
starte native Cocoa based window implementation
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1777 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/Display.java2
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/NewtFactory.java1
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/Screen.java2
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/Window.java2
4 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/com/sun/javafx/newt/Display.java b/src/classes/com/sun/javafx/newt/Display.java
index 988283aa3..2a9494f2b 100755
--- a/src/classes/com/sun/javafx/newt/Display.java
+++ b/src/classes/com/sun/javafx/newt/Display.java
@@ -43,6 +43,8 @@ public abstract class Display {
displayClass = Class.forName("com.sun.javafx.newt.kd.KDDisplay");
} else if (NewtFactory.WINDOWS.equals(type)) {
displayClass = Class.forName("com.sun.javafx.newt.windows.WindowsDisplay");
+ } else if (NewtFactory.MACOSX.equals(type)) {
+ displayClass = Class.forName("com.sun.javafx.newt.macosx.MacDisplay");
} else if (NewtFactory.X11.equals(type)) {
displayClass = Class.forName("com.sun.javafx.newt.x11.X11Display");
} else if (NewtFactory.AWT.equals(type)) {
diff --git a/src/classes/com/sun/javafx/newt/NewtFactory.java b/src/classes/com/sun/javafx/newt/NewtFactory.java
index 6f6eeb02d..4f2ecf569 100755
--- a/src/classes/com/sun/javafx/newt/NewtFactory.java
+++ b/src/classes/com/sun/javafx/newt/NewtFactory.java
@@ -65,6 +65,7 @@ public abstract class NewtFactory {
// would change if we were running on the iPhone and
// didn't have an AWT
windowType = AWT;
+ //windowType = MACOSX;
} else {
windowType = X11;
}
diff --git a/src/classes/com/sun/javafx/newt/Screen.java b/src/classes/com/sun/javafx/newt/Screen.java
index efb75577c..7a4209826 100755
--- a/src/classes/com/sun/javafx/newt/Screen.java
+++ b/src/classes/com/sun/javafx/newt/Screen.java
@@ -43,6 +43,8 @@ public abstract class Screen {
screenClass = Class.forName("com.sun.javafx.newt.kd.KDScreen");
} else if (NewtFactory.WINDOWS.equals(type)) {
screenClass = Class.forName("com.sun.javafx.newt.windows.WindowsScreen");
+ } else if (NewtFactory.MACOSX.equals(type)) {
+ screenClass = Class.forName("com.sun.javafx.newt.macosx.MacScreen");
} else if (NewtFactory.X11.equals(type)) {
screenClass = Class.forName("com.sun.javafx.newt.x11.X11Screen");
} else if (NewtFactory.AWT.equals(type)) {
diff --git a/src/classes/com/sun/javafx/newt/Window.java b/src/classes/com/sun/javafx/newt/Window.java
index 3601b87a9..98f4eeeff 100755
--- a/src/classes/com/sun/javafx/newt/Window.java
+++ b/src/classes/com/sun/javafx/newt/Window.java
@@ -54,6 +54,8 @@ public abstract class Window implements NativeWindow
windowClass = Class.forName("com.sun.javafx.newt.kd.KDWindow");
} else if (NewtFactory.WINDOWS.equals(type)) {
windowClass = Class.forName("com.sun.javafx.newt.windows.WindowsWindow");
+ } else if (NewtFactory.MACOSX.equals(type)) {
+ windowClass = Class.forName("com.sun.javafx.newt.macosx.MacWindow");
} else if (NewtFactory.X11.equals(type)) {
windowClass = Class.forName("com.sun.javafx.newt.x11.X11Window");
} else if (NewtFactory.AWT.equals(type)) {