XLib 的 Java 绑定
我正在寻找 XLib 的 Java 绑定。
特别是,我需要能够从 Java 中重新设置 X windows 应用程序的父级。
理想情况下,我想通过直接从 java 进行 X windows 调用来做到这一点。
I'm looking for Java bindings for XLib.
Specially, I need to be able to reparent an X windows application from within Java.
Ideally I would like to do this by making the X windows calls directly from java.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对 XLib 一无所知...但最近我遇到了 JNA ,似乎它可以与系统 API 通信,因此如果您愿意,请看一下:
http://java-native-access.github.io/jna/4.4.0/javadoc/
祝你好运!
I don't know anything about XLib... but recently I ran across JNA and it seems that it can talk with system APIs so give it a look if you wish:
http://java-native-access.github.io/jna/4.4.0/javadoc/
Good Luck!
我通过 SWiG 创建了 Java 的 xcb(xlib 的后继者)绑定。您可以在这里找到代码:
https://github.com/Zubnix/xcb4j
这是一个相当大但简单的实现,一旦安装了所有必需的 xcb 模块头文件就应该可以工作。
I've created xcb (successor of xlib) bindings for Java through SWiG. You can find the code here:
https://github.com/Zubnix/xcb4j
It's a rather large but straightforward implementation and should work once you have all the required xcb module headers installed.