package usda.weru.util;

import java.awt.Frame;
import usda.weru.util.gui.AboutDialog_n;

/**
 * A basic implementation of the JDialog class.
 */
public class AboutDialog extends AboutDialog_n {

    private static final long serialVersionUID = 1L;

    /**
     *
     * @param parentFrame
     * @param app
     */
    public AboutDialog(Frame parentFrame, usda.weru.util.Application app) {
        super(parentFrame);
        setTitle(app.getName() + " - About");
        g_messageLabel.setText(app.getDescription());

        g_aboutTextArea.setText(About.getAbout(app, true));
        g_aboutTextArea.setCaretPosition(0);
    }

}
