//--------------------------------------------------------------------------
public LogFactor5AboutDialog(Frame owner) {
super(owner, "About LogFactor5", true);
ProductProperties props = ProductProperties.getInstance();
setTitle("About LogFactor5");
JPanel imagePanel = new JPanel();
Resource aboutResource = new Resource("org/apache/log4j/lf5/viewer/images/" +
"lf5_about.gif");
URL aboutIconURL = aboutResource.getURL();
ImageIcon aboutIcon = null;
if (aboutIconURL != null) {
aboutIcon = new ImageIcon(aboutIconURL);
}
JLabel imageLabel = new JLabel();
if (aboutIcon != null) {
imageLabel.setIcon(aboutIcon);
}
imagePanel.add(imageLabel);
JPanel textPanel = new JPanel();
textPanel.setLayout(new GridLayout(3, 1));
int numberOfRows = 13;
numberOfRows = 11; // we need less room for a registered user.
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new GridLayout(numberOfRows, 1));
JLabel aboutLF5 = new JLabel("LogFactor5 v" + props.getProductVersionNumber(), JLabel.CENTER);
aboutLF5.setHorizontalAlignment(SwingConstants.CENTER);
JLabel donate = new JLabel("Contributed by ThoughtWorks Inc.");
donate.setHorizontalAlignment(SwingConstants.CENTER);
mainPanel.add(aboutLF5);
mainPanel.add(Box.createVerticalStrut(10));