Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用 SimpleOpenNI 和 Processing 在 kinect 上制作一个项目,并且是新手。我想知道如何让我的输出窗口始终保持在顶部...即使我将焦点切换到其他应用程序(如 powerpoint 或 vlc)?
试试frame.setAlwaysOnTop(true);。它来自WindowClass,但处理的frame变量是 an AWT Frame,它 extends Window。
frame.setAlwaysOnTop(true);
Window
frame
AWT Frame
文档