void performUsing(final AboutHandler handler, final _NativeEvent event) { handler.handleAbout(new AboutEvent()); }
/** * Installs a handler to show a custom About window for your application. * <p> * Setting the {@link java.awt.desktop.AboutHandler} to {@code null} reverts it to the * default behavior. * * @param aboutHandler the handler to respond to the * {@link java.awt.desktop.AboutHandler#handleAbout(AboutEvent)} message * * @throws SecurityException if a security manager exists and it * denies the * {@code RuntimePermission("canProcessApplicationEvents")} * permission * @throws UnsupportedOperationException if the current platform * does not support the {@link Desktop.Action#APP_ABOUT} action * * @since 9 */ public void setAboutHandler(final AboutHandler aboutHandler) { checkEventsProcessingPermission(); checkActionSupport(Action.APP_ABOUT); peer.setAboutHandler(aboutHandler); }
/** * Installs a handler to show a custom About window for your application. * <p> * Setting the {@link AboutHandler} to {@code null} reverts it to the * default behavior. * * @param aboutHandler the handler to respond to the * {@link AboutHandler#handleAbout} )} message */ default void setAboutHandler(final AboutHandler aboutHandler) { }
/** * Installs a handler to show a custom About window for your application. * * Setting the {@link AboutHandler} to {@code null} reverts it to the default Cocoa About window. * * @param aboutHandler the handler to respond to the {@link AboutHandler#handleAbout} message * @since Java for Mac OS X 10.6 Update 3 * @since Java for Mac OS X 10.5 Update 8 */ public void setAboutHandler(final AboutHandler aboutHandler) { eventHandler.aboutDispatcher.setHandler(aboutHandler); }
/** * Installs a handler to show a custom About window for your application. * <p> * Setting the {@link java.awt.desktop.AboutHandler} to {@code null} reverts it to the * default behavior. * * @param aboutHandler the handler to respond to the * {@link java.awt.desktop.AboutHandler#handleAbout} )} message * * @throws SecurityException if a security manager exists and it * denies the * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission * @throws UnsupportedOperationException if the current platform * does not support the {@link Desktop.Action#APP_ABOUT} action * * @since 9 */ public void setAboutHandler(final AboutHandler aboutHandler) { checkAWTPermission(); checkActionSupport(Action.APP_ABOUT); peer.setAboutHandler(aboutHandler); }