FileDocCategorySizeDatePackage
LogFactor5ErrorDialog.javaAPI DocApache log4j 1.2.153228Sat Aug 25 00:09:38 BST 2007org.apache.log4j.lf5.viewer

LogFactor5ErrorDialog

public class LogFactor5ErrorDialog extends LogFactor5Dialog
LogFactor5ErrorDialog
author
Richard Hurst
author
Brad Marlborough

Fields Summary
Constructors Summary
public LogFactor5ErrorDialog(JFrame jframe, String message)

    super(jframe, "Error", true);

    JButton ok = new JButton("Ok");
    ok.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        hide();
      }
    });

    JPanel bottom = new JPanel();
    bottom.setLayout(new FlowLayout());
    bottom.add(ok);

    JPanel main = new JPanel();
    main.setLayout(new GridBagLayout());
    wrapStringOnPanel(message, main);

    getContentPane().add(main, BorderLayout.CENTER);
    getContentPane().add(bottom, BorderLayout.SOUTH);
    show();

  
Methods Summary