“Always on Top” Windows with Java
问题 In Java, is there a way to have a window that is \"Always on top\" regardless if the user switches focus to another application? I\'ve searched the web, and all of the solutions lean to some sort of JNI interface with native bindings. Truly this can\'t be the only way to do it?.. or is it? 回答1: Try this method of the Window class: Window.setAlwaysOnTop(boolean) It works the same way as the default in the Windows TaskManager: switch to another app but it shows always on top. This was added in