to create X window(X11) in java swing and to get its id

前端 未结 5 1558
孤街浪徒
孤街浪徒 2020-12-17 05:42

Can anyone help me in creating an X11 window in java swing using eclipse?And also the function to get the x11 id also.What are the basic requirement for creating an X11 wind

5条回答
  •  我在风中等你
    2020-12-17 06:06

    For those out there still looking for this:

    You need to find the most toplevel component of your program and get the component's 'componentpeer'. Under linux this will be of type XComponent peer which extends XWindow which extends XBaseWindow. XBaseWindow has an attribute window of type long. That's what you're looking for. You probably need to use reflection to get to it.

    hf

提交回复
热议问题