Examples of ProductProperties


Examples of org.apache.log4j.lf5.util.ProductProperties

  protected void initComponents() {
    //
    // Configure the Frame.
    //
    ProductProperties props = ProductProperties.getInstance();

    _logMonitorFrame = new JFrame("LogFactor5");

    _logMonitorFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
View Full Code Here

Examples of org.apache.log4j.lf5.util.ProductProperties

  //--------------------------------------------------------------------------

  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));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.