Make Your Swing App Go Native, Part 1: "On the Mac, there is a third party library called Notifications, written by Gregory Guerin. His library uses JDirect, Apple's form of Java native integration, to call the OS X Carbon APIs that control the dock. It is thoughtfully released under the Artistic License, so we'll use it here."