private void addQTComponent(Object obj) throws Exception {
		if (!(obj instanceof Component)) {
			Class[] types = { obj.getClass() };
			Object[] args = { obj };
			Method makeQTComponent = qtFactoryClass.getMethod("makeQTComponent", types);
			obj = makeQTComponent.invoke(null, args);
			if (!(obj instanceof Component)) {
				Class<?> qtClass = obj.getClass();
				Method asComponent = qtClass.getMethod("asComponent", new Class[0]);
				obj = asComponent.invoke(obj, new Object[0]);
			}
		}
		removeAll();
		add((Component) obj, BorderLayout.CENTER);
	}