Package apps.plaf.macosx
Class Jdk9Application
java.lang.Object
apps.plaf.macosx.Application
apps.plaf.macosx.Jdk9Application
Wrapper for Apple provided extensions to Java that allow Java apps to feel
more "Mac-like" on Mac OS X for JDK 9.
NOTE All use of this class must be wrapped in a conditional test that ensures that JMRI is not running on Mac OS X or in Try-Catch blocks. The easiest test is:
if (SystemType.isMacOSX()) {
...
}
A Try-Catch block will need to catch
NoClassDefFoundError Failure to use one of these methods
will result in crashes.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAboutHandler(AboutHandler handler) voidsetPreferencesHandler(PreferencesHandler handler) voidsetQuitHandler(QuitHandler handler) Methods inherited from class apps.plaf.macosx.Application
getApplication
-
Constructor Details
-
Jdk9Application
-
-
Method Details
-
setAboutHandler
- Specified by:
setAboutHandlerin classApplication
-
setPreferencesHandler
- Specified by:
setPreferencesHandlerin classApplication
-
setQuitHandler
- Specified by:
setQuitHandlerin classApplication
-