0

The title pretty much says everything.

I have the icon in the taskbar but when I right click it i can only "close the window".

It might have something to do with AppUserModelID , which is related to my first line of code when the program starts : Display.setAppName("MYAPPNAME"); I'm aware that there is a TaskBar class which I already use for progress / icon edit / menu (not working on Win) but there's nothing about pining.

edit : I use launch4j to launch my app.

Thanks

Community
  • 1
  • 1
NeeL
  • 720
  • 6
  • 20

1 Answers1

1

Only executables can be pinned to the taskbar. A jar file is per se no executable. You can do the following to pin your application:

  1. Use a tool like install4j to create an installer and executable of your application
  2. Use the answer to this question

If you're running it directly from an IDE, there is no way (that I know of) to pin it.

Community
  • 1
  • 1
Baz
  • 36,440
  • 11
  • 68
  • 94
  • I forgot to say that i actually use launch4j to launch my program and still can't pin it – NeeL Jan 15 '15 at 13:38