MCPcopy Create free account
hub / github.com/java-native-access/jna / getComponentID

Method getComponentID

src/com/sun/jna/Native.java:422–424  ·  view source on GitHub ↗

Utility method to get the native window ID for a heavyweight Java Component as a long value. This method is primarily for X11-based systems, which use an opaque XID (usually long int ) to identify windows. @throws HeadlessException if the current VM is r

(Component c)

Source from the content-addressed store, hash-verified

420 * @throws HeadlessException if the current VM is running headless
421 */
422 public static long getComponentID(Component c) throws HeadlessException {
423 return AWT.getComponentID(c);
424 }
425
426 /** Utility method to get the native window pointer for a Java
427 * {@link Window} as a {@link Pointer} value. This method is primarily for

Callers 1

getDrawableMethod · 0.95

Calls 1

getComponentIDMethod · 0.95

Tested by

no test coverage detected