When we run an java GUI application in windows or Mac, it appears in taskbar or dock as shown below.
In Windows Taskbar:
In Mac Dock:
I was wondering if there is a way to hide or remove the application from taskbar/dock. I mean the GUI application will run but it will not be shown in dock/taskbar.
Thanks in advance.
Try to replace JFrame with JDialog.
This appears to be platform dependent.
On Mac OS X, set the Info.plist
property LSUIElement
to 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With