Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove/Hide java application from taskbar/dock

When we run an java GUI application in windows or Mac, it appears in taskbar or dock as shown below.

In Windows Taskbar:

enter image description here

In Mac Dock:

enter image description here

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.

like image 956
Sandeep Kumar Avatar asked Jul 09 '11 07:07

Sandeep Kumar


2 Answers

Try to replace JFrame with JDialog.

like image 53
StanislavL Avatar answered Oct 22 '22 19:10

StanislavL


This appears to be platform dependent.

On Mac OS X, set the Info.plist property LSUIElement to 1.

like image 22
trashgod Avatar answered Oct 22 '22 20:10

trashgod