问题
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