Java - Windows taskbar using JNA - How do I convert window icons (HICON) to java images?
I'm trying to add an application-switcher to a bigger project I'm working on. It needs to work on Windows XP/Vista/7/8. I'm using Java 1.7. Below is a sample application I created to demonstrate some of the problems I'm having. I'm very new to JNA. Thanks very much to 'Hovercraft Full of Eels' for this answer (and many others!) which forms the basis for the test application. Here are my questions: Image drawing - The images that I get from the window icons are being drawn in black and white. I modified the code in getImageForWindow from this answer by McDowell (Thanks!). Is there a better way