Does Oracle Java 7 for Mac OS X have com.apple.eawt.CocoaComponent or the like?

Apple Java, which is on version 6 on my machine, has a class com.apple.eawt.CocoaComponentfor connecting AWT / Swing applications to Cocoa components. Example: Displaying the AudioUnit user interface (which is a Cocoa view) in a Java application. I would like to use Java 7, but I cannot find this class in it. Does anyone know where he is? Or if there is an alternative?

+5
source share
2 answers

The classes are com.apple.eawtindeed included in the Oracle JDK from 7u4 to the latest (as of 10/30/2012) 7u9. For some use cases, see Full Screen for Java Applications on OSX Lion or Swing FullScreen Components Cannot Get Java 7 Keyboard Input on Mac OS X Mountain Lion

One problem is that they don't seem to be building javadoc for these classes at the moment , so finding the latest APIs is difficult. I resorted to searching the .java files on the Internet. You might also be lucky with the older API link to developer.apple.com , although this does not include newer classes such as FullScreenUtilities.

+2
source

Marven, , :

,

0

All Articles