getComponent

context(env: JniEnv)
fun Awt.getComponent(platformInfo: COpaquePointer): JAwtComponent?(source)

Returns a reference to a java.awt.Component from a native platform handle:

  • on Windows - HWND

  • on Linux - Drawable

  • on macOS - NSWindow.

The reference returned by this function is a local reference that is only valid in this environment. This function returns null if no component could be found with matching platform information.

Since

1.4