Add buttons:
Long ndl = com.sun.glass.ui.Window.getWindows().get(0).getNativeHandle(); ITaskbarList3 list = null; try { list = COMRuntime.newInstance(ITaskbarList3.class); } catch (ClassNotFoundException e) { e.printStackTrace(); } Pointer<?> hwnd = Pointer.pointerToAddress(ndl); Pointer<ITaskbarList3.THUMBBUTTON> buttons = Pointer.allocateArray(ITaskbarList3.THUMBBUTTON.class, 1); ITaskbarList3.THUMBBUTTON btn = buttons.get(0); list.ThumbBarAddButtons((Pointer<Integer>) hwnd,1,buttons); An empty button appears.
How can I attach an action and an icon to it now?
