"Yin Xunjun",
"Eugene Zimichev"};
public AboutDialog(Frame f) {
super(f, LocalisationHelper.getString("about_dialog_title"));
Panel logoPanel = new Panel();
ImageIcon logoIcon = new ImageIcon(getClass().getResource(LocalisationHelper.getString("about_dialog_image")));
JLabel la_icon = new JLabel(logoIcon);
la_icon.setBorder(new SoftBevelBorder(SoftBevelBorder.LOWERED));
logoPanel.add(la_icon);
JPanel versionPanel = new JPanel();
versionPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
versionPanel.setLayout(new GridBagLayout());
JLabel copyright = new JLabel("\u00A9" + " 2011-2014: Joerg Wuethrich and contributors", JLabel.CENTER);
JLabel contributorsLabel = new JLabel("contributors (alphabetically ordered):", JLabel.CENTER);
contributorsLabel.setForeground(Color.GRAY);
JLabel contributors = new JLabel(formatContributors(CONTRIBUTORS), JLabel.CENTER);
contributors.setPreferredSize(calculatePreferredSize(contributors, true, logoIcon.getIconWidth()));
JLabel version = new JLabel("<html><font color=\"gray\">version:</font> " + BuildInfoReader.getVersion() + "</html>", JLabel.CENTER);
JLabel buildDate = new JLabel("<html><font color=\"gray\">build date:</font> " + BuildInfoReader.getBuildDate() + "</html>", JLabel.CENTER);
GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.anchor = GridBagConstraints.NORTH;
gridBagConstraints.fill = GridBagConstraints.VERTICAL;
gridBagConstraints.gridx = 0;
versionPanel.add(copyright, gridBagConstraints);
Insets insetsGapOnTop = new Insets(10, 0, 0, 0);
GridBagConstraints gridBagConstraintsGapOnTop = new GridBagConstraints();
gridBagConstraintsGapOnTop.gridy = 1;
gridBagConstraintsGapOnTop.insets = insetsGapOnTop;
versionPanel.add(contributorsLabel, gridBagConstraintsGapOnTop);
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
versionPanel.add(contributors, gridBagConstraints);
gridBagConstraints.fill = GridBagConstraints.VERTICAL;
gridBagConstraintsGapOnTop.gridy = 3;
versionPanel.add(version, gridBagConstraintsGapOnTop);
gridBagConstraints.gridy = 4;
versionPanel.add(buildDate, gridBagConstraints);
Panel buttonPanel = new Panel();
buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
if (UrlDisplayHelper.displayUrlIsSupported()) {
JButton homePageButton = new JButton("Homepage");
homePageButton.setActionCommand(ACTION_HOMEPAGE);
homePageButton.addActionListener(this);
buttonPanel.add(homePageButton);
}
JButton okButton = new JButton(LocalisationHelper.getString("button_ok"));
okButton.setActionCommand(ACTION_OK);
okButton.addActionListener(this);
buttonPanel.add(okButton);
getContentPane().add("North", logoPanel);
getContentPane().add("Center", versionPanel);
getContentPane().add("South", buttonPanel);
pack();
setResizable(false);