Utility method to get the native window pointer for a Java Window as a Pointer value. This method is primarily for w32, which uses the HANDLE type (actually void ) to identify windows. @throws HeadlessException if the current VM is running headless
(Window w)
| 430 | * @throws HeadlessException if the current VM is running headless |
| 431 | */ |
| 432 | public static Pointer getWindowPointer(Window w) throws HeadlessException { |
| 433 | return new Pointer(AWT.getWindowID(w)); |
| 434 | } |
| 435 | |
| 436 | /** Utility method to get the native window pointer for a heavyweight Java |
| 437 | * {@link Component} as a {@link Pointer} value. This method is primarily |