package gve.calc;

import java.awt.*;
import awt.GridPackLayout;

// PENDING: vervangen door AboutWindow ...
public class SplashWindow extends Window implements Runnable {
	public SplashWindow(Frame owner) {
		super(owner);
		Panel p = new Panel();
		setLayout(new GridPackLayout(0,1));
		add(new Label("SICECAS " + Main.versionString,Label.CENTER)) ;
		add(new Label("a SImplistic Calculator & Computer Algebra System",Label.CENTER));
		add(new Label(""));
		add(new Label("Copyright (C) 1997, 1998, 1999, 2000, 2001, Geert Vernaeve.",
			Label.CENTER));
		add(new Label("SICECAS comes with ABSOLUTELY NO WARRANTY;",Label.CENTER));
		add(new Label("for details see the Project->About menu.",Label.CENTER));
		add(new Label("This is free software, and you are welcome to redistribute it",Label.CENTER));
		add(new Label("under certain conditions; see the Project->About menu.",Label.CENTER));
		pack();
		Dimension siz = getSize();
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		setLocation((screen.width-siz.width)/2,(screen.height-siz.height)/2);
		show();
		new Thread(this).start();
	}

	public void run() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException exc) {}
		dispose();
	}
}