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

Method getComponentPointer

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

Utility method to get the native window pointer for a heavyweight Java Component as a Pointer value. This method is primarily for w32, which uses the HWND type (actually void ) to identify windows. @throws HeadlessException if the current VM is running head

(Component c)

Source from the content-addressed store, hash-verified

440 * @throws HeadlessException if the current VM is running headless
441 */
442 public static Pointer getComponentPointer(Component c) throws HeadlessException {
443 return new Pointer(AWT.getComponentID(c));
444 }
445
446 static native long getWindowHandle0(Component c);
447

Callers 9

testGetParentMethod · 0.95
testBringWindowToTopMethod · 0.95
testGetWindowIconMethod · 0.95
testGetWindowTitleMethod · 0.95
testGetIconSizeMethod · 0.95
getHWndMethod · 0.95

Calls 1

getComponentIDMethod · 0.95

Tested by 8

testGetParentMethod · 0.76
testBringWindowToTopMethod · 0.76
testGetWindowIconMethod · 0.76
testGetWindowTitleMethod · 0.76
testGetIconSizeMethod · 0.76