use of jmri.plaf.macosx.AboutHandler in project JMRI by JMRI.
the class Apps3 method initMacOSXMenus.
protected void initMacOSXMenus() {
jmri.plaf.macosx.Application macApp = jmri.plaf.macosx.Application.getApplication();
macApp.setAboutHandler(new AboutHandler() {
@Override
public void handleAbout(EventObject eo) {
new AboutDialog(null, true).setVisible(true);
}
});
macApp.setPreferencesHandler(new PreferencesHandler() {
@Override
public void handlePreferences(EventObject eo) {
new TabbedPreferencesAction(Bundle.getMessage("MenuItemPreferences")).actionPerformed();
}
});
macApp.setQuitHandler(new QuitHandler() {
@Override
public boolean handleQuitRequest(EventObject eo) {
return handleQuit();
}
});
}
Aggregations