"Bringing my Java application on Mac OS X": menu

I'm trying to make my Java applications better integrated with Mac OSX, and I made it so that the menu moves to the top of the screen. However, I am trying to manage the "Exit" and "About the program" menu items in the "Ready Application" menu using the following page: http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/

However, when I try to create the extends Application class in Eclipse (on my Windows computer), I get an error and the only option is to create the class, and import is not possible. Does anyone know why?

Thanks in advance

+1
source share
1 answer

The class application is only available on Mac OS X, so you cannot apply to it on Windows. Take a look at the OSXAdapter , which shows how to integrate functionality using Reflection only, and thus work on Mac OS X and at least compile on another system.

+2
source

Source: https://habr.com/ru/post/1203523/


All Articles