Hide Windows taskbar in Java?

人走茶凉 提交于 2019-12-11 21:24:04

问题


I want to hide the Windows taskbar with Java. How can I do this? My compiler is Eclipse with JDK 7. I have tried using setSize() to go to full resolution, but the taskbar goes in front of it.


回答1:


Java operates within the JVM. The Windows Taskbar is outside of JVM and tied to the machine's operating system.

In order to operate at that level, my guess would be to tie into the WinAPI's, but i have never tried this.

JNA might help.




回答2:


Use Full-Screen Exclusive Mode. It is an API that:

..allows the programmer to suspend the windowing system so that drawing can be done directly to the screen.



来源:https://stackoverflow.com/questions/19435048/hide-windows-taskbar-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!