问题描述
我想将一个窗口的焦点更改为另一个窗口。我在Windows中完成了这项任务,现在我想使用X11为Linux / Ubuntu操作系统执行相同的任务..
假设我们已经打开了两个应用程序
运行时运行= Runtime.getRuntime();
进程prog = run.exec(gedit);
流程prog2 = run.exec(gcalctool);
如果当前的焦点窗口是计算器,则窗口的焦点变为文本编辑器,反之亦然。
嗨专家帮助...
提前致谢
问候
Nei Sa
I want to Change focus of One window to another window. I have done this task in Windows and now I want to do same task for the Linux / Ubuntu OS using X11..
Suppose we have opened two applications
Runtime run = Runtime.getRuntime();
Process prog = run.exec("gedit");
Process prog2 = run.exec("gcalctool");
if current focused window is Calculator then Window's focus changed to the text Editor or vice versa.
Hey Experts Help...
Thanks in Advance
Regards
Nei Sa
这篇关于如何使用X11和Java查找Windows的标题文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!