The key behind properly handling the About, Quit, and Preferences menu items and events comes from using Apple's Application and ApplicationAdapter classes. The Mac Application and ApplicationAdapter classes For Java 9 and newer, see my new tutorial, How to enable About, Preferences, and Quit menu items on MacOS and Java 9 and Java 10. UPDATE: The technique shown below works on Java versions prior to Java 10. Fortunately doing this is very simple, and I'll demonstrate that in this "Java on macOS" tutorial. When writing Java GUI code for the macOS platform (formerly Mac OS X), you'll want to properly handle the Mac About, Quit, and Preferences menu items and events.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |