use of com.google.security.zynamics.zylib.gui.CDialogAboutEx in project binnavi by google.
the class CWindowFunctions method showAboutDialog.
/**
* Shows the BinNavi About dialog.
*
* @param parent Parent window used for dialogs.
*/
public static void showAboutDialog(final JFrame parent) {
try {
final List<Pair<String, URL>> urls = new ArrayList<>();
urls.add(new Pair<>("zynamics Website", new URL("http://www.zynamics.com")));
urls.add(new Pair<>("BinNavi Product Site", new URL("http://www.zynamics.com/binnavi.html")));
urls.add(new Pair<>("Report Bugs", new URL("mailto:zynamics-support@google.com")));
final String message = Constants.PROJECT_NAME_VERSION_BUILD + "\n\nCopyright ©2004-2011 zynamics GmbH.\nCopyright ©2011-2016 Google Inc.\n";
final String description = "\nParts of this software were created by third parties and have different licensing " + "requirements.\nPlease see the manual file for a complete list.\n";
final Image appImage = new ImageIcon(CMain.class.getResource("data/binnavi_logo3_border.png")).getImage();
final CDialogAboutEx dlg = new CDialogAboutEx(parent, new ImageIcon(appImage), Constants.PROJECT_NAME_VERSION, message, description, urls);
GuiHelper.centerOnScreen(dlg);
dlg.setVisible(true);
} catch (final Exception e) {
CUtilityFunctions.logException(e);
}
}