morning to everybody!
i have a tabpanel with two tabitem, i setclosable(true) the second one and in my application i notes that when i close it the tabitem is remove from tabpanel then i don't know how to re-open it throught my source code when we click on a treestore (the source code of my event i already have it).
i try this:
as the treestore have the same name than the tabitem's text; i browse the tabpanel's item until i find out the tabitem witch correspond and then it's open but as the tabitem corresponding is remove from the tabpanel when it was close, the browser will never find it

so please if you have some idea i'm klisten to you!!!
thx!

terciofilho

29 Jan 2010, 11:09 AM

You should have a reference to this tabItem, and when you need it again, just add it again: tabPanel.add(tabItem);

jocy

2 Feb 2010, 6:41 AM

ok! thanks i done like you were saying and put my TabItem's reference in a tab:D