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.