Repainting Tree after ItemClick

Dear colleagues!
I have a problem with Tree.ItemClickListner. It works, but after click and new window appearing Tree becomes invisible. It’s items in this case still stay clickable. Here is my code:
private Component CreateAboutTree() {
final Object
guide_links = new Object
{
new Object {
“Why QuickFins?”,“Planning Steps”,“Planning Methods”,“Planning Tools”
},
new Object {
“Geting Started”,“Your Starting Model”,“Your Invoices & Aggrements”,
“Your Projects”,“Statistics”,“Reporting”}
};
final Tree AboutTree = new Tree();
AboutTree.setCaption(null);
for (Object guide_link : guide_links) {
String g_link_parent = (String) guide_link[0]
;
AboutTree.addItem(g_link_parent);
if (guide_link.length > 1) {
for (int j = 1; j < guide_link.length; j++) {
String g_link_child = (String) guide_link[j]
;
AboutTree.addItem(g_link_child);
AboutTree.setParent(g_link_child, g_link_parent);
AboutTree.setChildrenAllowed(g_link_child, false);
}
}
}
AboutTree.expandItemsRecursively(“Why QuickFins?”);
AboutTree.expandItemsRecursively(“Geting Started”);
AboutTree.setStyleName(“v-mylink”);
AboutTree.setImmediate(true);
AboutTree.addItemClickListener(new ItemClickListener(){
@Override
public void itemClick(ItemClickEvent event) {
/throw new UnsupportedOperationException(“Not supported yet.”); //To change body of generated methods, choose Tools | Templates./
AboutTree.setItemCaptionPropertyId(“name”);
AboutTree.setItemCaptionMode(AbstractSelect.ItemCaptionMode.PROPERTY);
if(event.getButton().equals(MouseButton.LEFT)){
Window win = new Window("Selected " + event.getItemId().toString());
VerticalLayout c_win = new VerticalLayout();
c_win.addComponent(new Label());
win.setPositionX(500);
win.setPositionY(400);
win.setContent(c_win);
addWindow(win);
}

        }
        
        });
        return AboutTree;
    } </code>

Please tell me, what I’m doing wrong.
Thanks

The problem was in “AboutTree.setItemCaptionPropertyId(“name”)”. It shouldn’t be there. I’ve removed it and it works propertly.