AssetManager.addInitialisationListener(this);  SwingWorker worker = new SwingWorker() { public Object construct() { AssetManager.init(); return null; } }; worker.start();
	public void init() {		// load the parameters from the applet tag and add them to		// our property set		String paramStr = getParameter("parameter.params");		String[] params = paramStr.split(",");		for (int i = 0; i < params.length; i++) {			Matrix.setProperty(params[i], getParameter(params[i]));		}		window = JSObject.getWindow(this);		createApplet();		getContentPane().add(createApplet());		AssetManager.addInitialisationListener(this);		SwingWorker worker = new SwingWorker() {			public Object construct() {				AssetManager.init();				return null;			}		};		worker.start();		// Polling timer		ActionListener taskPerformer = new ActionListener() {			public void actionPerformed(ActionEvent evt) {				if (window == null)					JSObject.getWindow(AssetMap.this);				String assetids = (String) window.getMember("SQ_REFRESH_ASSETIDS");				if (!assetids.equals("")) {					AssetManager.refreshAssets(assetids);					window.eval("SQ_REFRESH_ASSETIDS = '';");				}			}		};		timer = new javax.swing.Timer(2000, taskPerformer);		timer.setDelay(5000);		timer.start();			}