Search in sources :

Example 1 with CDialogAboutEx

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);
    }
}
Also used : ImageIcon(javax.swing.ImageIcon) CDialogAboutEx(com.google.security.zynamics.zylib.gui.CDialogAboutEx) ArrayList(java.util.ArrayList) Image(java.awt.Image) URL(java.net.URL) Pair(com.google.security.zynamics.zylib.general.Pair)

Aggregations

Pair (com.google.security.zynamics.zylib.general.Pair)1 CDialogAboutEx (com.google.security.zynamics.zylib.gui.CDialogAboutEx)1 Image (java.awt.Image)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 ImageIcon (javax.swing.ImageIcon)1