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)
| 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 |