aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-03-19 22:00:18 +0100
committerSven Gothel <[email protected]>2019-03-19 22:00:18 +0100
commit46e0b6d774301056ff1691ddd92552f7972751e1 (patch)
treeeee074a1af939b81efc4369f32a4330cdf002474 /src/nativewindow/classes/com
parenta4ec6556f9ef3a409cceb9bfdb0d19dfc7d98d4a (diff)
JavaFX: Fix API doc of JFXAccessor
Diffstat (limited to 'src/nativewindow/classes/com')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/javafx/JFXAccessor.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/javafx/JFXAccessor.java b/src/nativewindow/classes/com/jogamp/nativewindow/javafx/JFXAccessor.java
index 12cd9bdc0..d52f59181 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/javafx/JFXAccessor.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/javafx/JFXAccessor.java
@@ -219,9 +219,9 @@ public class JFXAccessor {
}
/**
- * @param swtControl the SWT Control to retrieve the native device handle from
+ * @param stageWindow the JavaFX top heavyweight window handle
* @return the AbstractGraphicsDevice w/ the native device handle
- * @throws NativeWindowException if the widget handle is null
+ * @throws NativeWindowException if an exception occurs retrieving the window handle or deriving the native device
* @throws UnsupportedOperationException if the windowing system is not supported
*/
public static AbstractGraphicsDevice getDevice(final Window stageWindow) throws NativeWindowException, UnsupportedOperationException {
@@ -230,7 +230,7 @@ public class JFXAccessor {
final String connection = null;
final long x11DeviceHandle = X11Util.openDisplay(connection);
if( 0 == x11DeviceHandle ) {
- throw new RuntimeException("Error creating display: "+connection);
+ throw new NativeWindowException("Error creating display: "+connection);
}
return new X11GraphicsDevice(x11DeviceHandle, AbstractGraphicsDevice.DEFAULT_UNIT, true /* owner */);
}
@@ -263,9 +263,9 @@ public class JFXAccessor {
}
/**
- * @param swtControl the SWT Control to retrieve the native widget-handle from
- * @return the native widget-handle
- * @throws NativeWindowException if the widget handle is null
+ * @param stageWindow the JavaFX top heavyweight window handle
+ * @return the native window handle
+ * @throws NativeWindowException if an exception occurs retrieving the window handle
*/
public static long getWindowHandle(final Window stageWindow) throws NativeWindowException {
final long h[] = { 0 };