Public void setAboutHandler( AboutHandler aboutHandler) Installs a handler to show a custom About window for your application.
#Apple java 1.4 1 mac os x
Public void removeAppEventListener( AppEventListener listener) Removes sub-types of AppEventListener from listening for notifications from the native Mac OS X system.
#Apple java 1.4 1 for mac os x
Parameters: listener - Since: Java for Mac OS X 10.6 Update 3, Java for Mac OS X 10.5 Update 8 See Also: AppForegroundListener, Public void addAppEventListener( AppEventListener listener) Adds sub-types of AppEventListener to listen for notifications from the native Mac OS X system. Public static Application getApplication() Returns: the singleton representing this Mac OS X Application Since: 1.4 Should only be used in JavaBean environments. use getApplication()Ĭreates an Application instance. Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitĪpplication Application() Deprecated. Sets the default strategy used to quit this application. Installs the handler which determines if the application should quit. Installs the handler which is notified when the application is asked to print a list of files. SetPrintFileHandler( PrintFilesHandler printFileHandler) Installs a handler to create the Preferences menu item in your application's app menu. SetPreferencesHandler( PreferencesHandler preferencesHandler) Installs the handler which is notified when the application is asked to open a URL. SetOpenURIHandler( OpenURIHandler openURIHandler) Installs the handler which is notified when the application is asked to open a list of files. SetOpenFileHandler( OpenFilesHandler openFileHandler) SetEnabledPreferencesMenu(boolean enable) Sets the default menu bar to use when there are no active frames.Īffixes a small system provided badge to this application's Dock icon.Ĭhanges this application's Dock icon to the provided image.Īttaches the contents of the provided PopupMenu to the application's Dock icon. Installs a handler to show a custom About window for your application. SetAboutHandler( AboutHandler aboutHandler) Requests user attention to this application (usually through bouncing the Dock icon). Requests this application to move to the foreground. use setPreferencesHandler(PreferencesHandler) with a null parameter unregister individual handlers for each task (About, Preferences, Open, Print, Quit, etc)ĭeprecated. RemoveApplicationListener( ApplicationListener listener)ĭeprecated. Removes sub-types of AppEventListener from listening for notifications from the native Mac OS X system. RemoveAppEventListener( AppEventListener listener) use setAboutHandler(AboutHandler) with a null parameter Opens the native help viewer application if a Help Book has been added to theĪpplication bundler and registered in the ist with CFBundleHelpBookFolder.ĭeprecated. Obtains an image of this application's Dock icon.ĭeprecated. Prevents this application from being suddenly terminated.Įnables this application to be suddenly terminated. use setPreferencesHandler(PreferencesHandler) with a non-null PreferencesHandler parameter register individual handlers for each task (About, Preferences, Open, Print, Quit, etc)ĭeprecated. use setAboutHandler(AboutHandler) with a non-null AboutHandler parameterĪddAppEventListener( AppEventListener listener)Īdds sub-types of AppEventListener to listen for notifications from the native Mac OS X system.ĪddApplicationListener( ApplicationListener listener)ĭeprecated. Cancel shutdown/logout if the user has unsaved changes in your application.ĭeprecated.Cleanly shutdown your application when the user chooses Quit from the application menu, Dock icon, or types Command-Q.