I've been working with the same problem for a while, and I'm not sure you can fix it. As far as I can tell, the taskbar button is provided by the system (and is associated with a specific JFrame), and you can't create your own.
Another programmer and I developed a floating button bar, similar to the Microsoft one. To keep it small, we used a JWindow to remove the titlebar from the application GUI. The only solution I've come up with to keep track of the window is to keep it always in front.
Originally posted by Jeff Smith:
Hello,
I'm creating a program where I don't want any of the window chrome visible (the titlebar, borders, etc...) so instead of using a JFrame i've used a JWindow. Everything's working fine, except that when I run the program it doesn't show up in the taskbar?? If I use a JFrame then it shows up, but I have the extra stuff I don't want on the frame. How do I get my program to show up on the taskbar when using a JWindow instead of JFrame, or how do I remove all the window chrome from a JFrame?
Thanks,
Jeff