Well, apparently even Netbeans was struggling
with this at one stage, as well as many others
, but it doesn't seem impossible.
As one poster in the Netbeans bug report forum put it, perhaps a little too strongly:
...for people with Windows 7 64-bit and it makes Netbeans look very unprofessional when it is the one application that fails to integrate with the taskbar.