aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/x11
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-03-13 11:55:23 +0000
committerSven Gothel <[email protected]>2009-03-13 11:55:23 +0000
commita74f1100b11eb3a6944a73eea48bf17d14ede8c1 (patch)
tree48a1d2e9fb9a7beb0c71ce016104022e79d736d3 /src/classes/com/sun/javafx/newt/x11
parent3f0266e5d20216f68f515a943ad647d01e0ff567 (diff)
New package Native Window Interface 'java.media.nwi',
to loose JOGL dependencies for the moved interfaces, mainly NativeWindow. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1863 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/x11')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/x11/X11Window.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classes/com/sun/javafx/newt/x11/X11Window.java b/src/classes/com/sun/javafx/newt/x11/X11Window.java
index ee0846e1b..312cc161d 100755
--- a/src/classes/com/sun/javafx/newt/x11/X11Window.java
+++ b/src/classes/com/sun/javafx/newt/x11/X11Window.java
@@ -35,8 +35,8 @@ package com.sun.javafx.newt.x11;
import com.sun.javafx.newt.*;
import com.sun.opengl.impl.*;
-import javax.media.opengl.GLCapabilities;
-import javax.media.opengl.NativeWindowException;
+import javax.media.nwi.NWCapabilities;
+import javax.media.nwi.NativeWindowException;
public class X11Window extends Window {
private static final String WINDOW_CLASS_NAME = "NewtWindow";
@@ -47,19 +47,19 @@ public class X11Window extends Window {
NativeLibLoader.loadNEWT();
if (!initIDs()) {
- throw new RuntimeException("Failed to initialize jmethodIDs");
+ throw new NativeWindowException("Failed to initialize jmethodIDs");
}
}
public X11Window() {
}
- protected void createNative(GLCapabilities caps) {
- chosenCaps = (GLCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID)
+ protected void createNative(NWCapabilities caps) {
+ chosenCaps = (NWCapabilities) caps.clone(); // FIXME: visualID := f1(caps); caps := f2(visualID)
visualID = 0; // n/a
long w = CreateWindow(getDisplayHandle(), getScreenHandle(), getScreenIndex(), visualID, x, y, width, height);
if (w == 0 || w!=windowHandle) {
- throw new RuntimeException("Error creating window: "+w);
+ throw new NativeWindowException("Error creating window: "+w);
}
windowHandleClose = windowHandle;
displayHandleClose = getDisplayHandle();