protected void runHook() {
		GObject gobj = (GObject) getStartupObject();
		GDimension size = gobj.getSize();
		add(gobj, (getWidth() - size.getWidth()) / 2, (getHeight() - size.getHeight()) / 2);
		try {
			Class gobjClass = gobj.getClass();
			String className = gobjClass.getName();
			className = className.substring(className.lastIndexOf(".") + 1);
			setTitle(className);
			Method run = gobjClass.getMethod("run", new Class[0]);
			if (run == null) throw new ErrorException(className + " has no run method");
			run.invoke(gobj, new Object[0]);
		} catch (Exception ex) {
			throw new ErrorException(ex);
		}
	}