org.jsoar.debugger.AboutDialog Maven / Gradle / Ivy
/*
* Copyright (c) 2008 Dave Ray
*
* Created on Oct 25, 2008
*/
package org.jsoar.debugger;
import java.awt.Component;
import javax.swing.JOptionPane;
import org.jsoar.kernel.JSoarVersion;
/**
* @author ray
*/
public class AboutDialog
{
public static void show(Component parent)
{
// Someday we'll make a fancy about box. For now, this will do.
JSoarVersion version = JSoarVersion.getInstance();
String message = "" +
"JSoar Debugger
" +
"Copyright 2010, Dave Ray <[email protected]>
" +
"
" +
"Version: " + version + "
" +
"Built on: " + version.getBuildDate() + "
" +
"Built by: " + version.getBuiltBy() + "
" +
"";
JOptionPane.showMessageDialog(parent, message, "About JSoar",
JOptionPane.PLAIN_MESSAGE);
}
}