Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Get Window ID with SWT.

> Perhaps to integrate other graphical applications with the SWT it is
> necessary to get the ID of window SWT. With this ID it is possible to
> redirect a window of the XLIB for window SWT.

  If you want to embed an X window in SWT on Linux, you can create a
Composite with the SWT.EMBEDDED style.  The embeddedHandle of the
Composite (a public field) will be the X window ID.

  Composite embed = new Composite(shell, SWT.EMBEDDED);
  System.out.println ("X window ID: " + embed.embeddedHandle);

  This supports embedding using the XEMBED protocol.

  -Billy



Back to the top