Java Code Examples for java.awt.desktop.AboutHandler

The following are top voted examples for showing how to use java.awt.desktop.AboutHandler. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: openjdk-jdk10   File: _AppEventHandler.java   View source code 4 votes vote down vote up
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
 
Example 2
Project: openjdk9   File: _AppEventHandler.java   View source code 4 votes vote down vote up
void performUsing(final AboutHandler handler, final _NativeEvent event) {
    handler.handleAbout(new AboutEvent());
}
 
Example 3
Project: openjdk-jdk10   File: Desktop.java   View source code 2 votes vote down vote up
/**
 * 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);
}
 
Example 4
Project: openjdk-jdk10   File: DesktopPeer.java   View source code 2 votes vote down vote up
/**
 * 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) {
}
 
Example 5
Project: openjdk-jdk10   File: Application.java   View source code 2 votes vote down vote up
/**
 * 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);
}
 
Example 6
Project: openjdk9   File: Desktop.java   View source code 2 votes vote down vote up
/**
 * 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);
}
 
Example 7
Project: openjdk9   File: DesktopPeer.java   View source code 2 votes vote down vote up
/**
 * 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) {
}