import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
public class Splash extends JWindow implements ActionListener
{
/**
* arrange for Splash screen to close later automatically
* @param delayInMillis how long to keep the splash screen up.
*/
public void closeLater( long delayInMillis )
{
Timer splashTimer = new Timer( delayInMillis, this );
splashTimer.setRepeats( false );
splashTimer.start();
}
/**
* invoked whenever Timer expires
*
* @param e event not used.
*/
public void actionPerformed( ActionEvent e )
{
this.dispose();
}
}