sleep(UPDATE_FREQUENCY);
Thread.sleep(UPDATE_FREQUENCY);
    public UnitLoadingDialog(Frame frame) {        super(frame,"Please wait...");        setLayout(new GridLayout(4,2));        add(lLoading);        add(lSpacer);        add(lCacheText);        add(lCacheCount);        add(lFileText);        add(lFileCount);        add(lZipText);        add(lZipCount);        setSize(250,130);		// move to middle of screen		Dimension screenSize = frame.getToolkit().getScreenSize();        setLocation(            screenSize.width / 2 - getSize().width / 2,            screenSize.height / 2 - getSize().height / 2);                Thread t = new Thread() {            public void run() {                while (!MechSummaryCache.isInitialized()) {                    updateCounts();                    try {                        sleep(UPDATE_FREQUENCY);                    } catch (Exception e) {                        ;                    }                }            }        };        t.start();    }