English 中文(简体)
利用Java在X11窗口上通过ID进行油漆
原标题:Using Java to paint on an X11 window by ID

My goal is to use Java libraries to paint on an X11 window. The problem is I want to do this on a window that already exists and that I know the window ID of it. I ve done this with C and Rust, but would like to use Java now.

I can find in AWT where it creates a window and gets a window ID: https://github.com/openjdk/client/blob/master/src/java.desktop/unix/classes/sun/awt/X11/XBaseWindow.java#L380

我认为,这里的“拒绝”身份证将大大有助于实现这一目标。

How should I go about changing this behavior? I ve tried making classes to extend the relevant AWT classes, but run into problems with my code not being in the right package. [1]

我尝试了思考,但与XFramePeer的物体 st,并且能够进入其超级阶级的任何田地/方法。 页: 1

是的,我的理解是,这可能是一种 f。

Code samples: 1: In Java - https://github.com/robbieh/AWTForeignXWindow 2: In Clojure - https://gist.github.com/robbieh/c4662690abff19fc1cca12decd9b486e

问题回答

两年 我有一个答案,使用日本国家航空航天局,但绕过美国航天局的窗口。 在这里,当其他人后来来到这里时,有人用克隆语证明这一点。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签