public void addItem(Object obj, String name)
	{
		WidgetChooserButton button;
		if (checkable && selectedNo != -1) {
			button = (WidgetChooserButton)(layout.itemAt(selectedNo).widget());
			button.setChecked(false);
		}
		
		button = new WidgetChooserButton(obj, name, true);
		if (checkable) {
			button.setCheckable(true);
			button.setChecked(true);
		}
		button.selected.connect(this, "selected(Object)");
		selectedNo = layout.count();
		layout.insertWidget(-1, button);
		
		objects.add(obj);
		//button.show();
		System.out.println("addItem"+layout.count());
	}