aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/javafx/newt/macosx/MacWindow.java')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/macosx/MacWindow.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
index 345ebe0e1..f80f0b3ab 100755
--- a/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
+++ b/src/classes/com/sun/javafx/newt/macosx/MacWindow.java
@@ -33,7 +33,8 @@
package com.sun.javafx.newt.macosx;
-import javax.media.opengl.GLCapabilities;
+import javax.media.nwi.NWCapabilities;
+import javax.media.nwi.NativeWindowException;
import com.sun.javafx.newt.*;
import com.sun.opengl.impl.*;
@@ -135,15 +136,15 @@ public class MacWindow extends Window {
NativeLibLoader.loadNEWT();
if (!initIDs()) {
- throw new RuntimeException("Failed to initialize jmethodIDs");
+ throw new NativeWindowException("Failed to initialize jmethodIDs");
}
}
public MacWindow() {
}
- 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
}