Utility method to get the native window ID for a Java Window 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 running headless
(Window w)
| 410 | * @throws HeadlessException if the current VM is running headless |
| 411 | */ |
| 412 | public static long getWindowID(Window w) throws HeadlessException { |
| 413 | return AWT.getWindowID(w); |
| 414 | } |
| 415 | |
| 416 | /** Utility method to get the native window ID for a heavyweight Java |
| 417 | * {@link Component} as a <code>long</code> value. |