JAWTExample

Last Revision:
Version 2.0, 2011-03-09
Update to produce a universal binary, build using ant, use JavaNativeFoundation, and adopt new CALayer-based JAWT API. Now requires Mac OS X 10.6 or higher.
(Full Revision History)
Build Requirements:
Java for Mac OS X 10.6 Update 4 or later
Runtime Requirements:
Mac OS X 10.6 or later, "Java for Mac OS X 10.6 Update 4" or later for CALayer support

This sample demonstrates how to use the JAWT native interface to attach CoreAnimation layers to a Java component hierarchy, and access the underlying NSViews of AWT heavyweight components. The original NSView JAWT API was introduced in "Java 1.4.1 Update 1 for Mac OS X 10.2", and the CALayer extensions were added in "Java for Mac OS X 10.6 Update 4".