public class MacApplication
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MacApplication |
get()
Returns the Mac application wrapper instance.
|
void |
setAboutHandler(java.awt.event.ActionListener listener)
Sets an about handler for the application.
|
void |
setDockIconImage(java.awt.Image image)
Sets the dock icon image for the application.
|
void |
setPreferencesHandler(java.awt.event.ActionListener listener)
Sets a preferences handler for the application.
|
public static MacApplication get() throws java.lang.Exception
java.lang.Exception
- if the Apple-specific classes weren't foundpublic void setDockIconImage(java.awt.Image image) throws java.lang.Exception
image
- the image to usejava.lang.Exception
- if the image couldn't be addedpublic void setAboutHandler(java.awt.event.ActionListener listener) throws java.lang.Exception
listener
- the handler to use, or null for defaultjava.lang.Exception
- if the handler couldn't be addedpublic void setPreferencesHandler(java.awt.event.ActionListener listener) throws java.lang.Exception
listener
- the handler to use, or null for nonejava.lang.Exception
- if the handler couldn't be added