All pastes #288102 Raw Edit

Reggie

public java v1 · immutable
#288102 ·published 2006-12-22 01:01 UTC
rendered paste body
import java.awt.*;import javax.swing.*;public class Reggie extends JApplet{    public static void main(String[] args)    {        JFrame window = new JFrame("Wait Time");        WaitTime panel = new WaitTime();        window.setContentPane(panel);        window.setSize(550,600);        window.setLocation(100,100);        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        window.setVisible(true);    }        public void init()    {        // this is a workaround for a security conflict with some browsers        // including some versions of Netscape & Internet Explorer which do         // not allow access to the AWT system event queue which JApplets do         // on startup to check access. May not be necessary with your browser.         JRootPane rootPane = this.getRootPane();            rootPane.putClientProperty("defeatSystemEventQueueCheck", Boolean.TRUE);            // provide any initialisation necessary for your JApplet        setContentPane( new WaitTime() );    }    public void start()    {    }    public void stop()    {    }    public void destroy()    {    }}