PDA

View Full Version : Switching to another tab in code



toxkillfraex
11 Apr 2012, 4:23 AM
Oh well I don't think this really needs much explaining really, but the documentation on tabs is terribly confusing.

I'm looking for a way, when I hide a window (for which I already have the method set up), to make the tab panel inside make it's first child the active panel. (no matter where the user switched to while he was using the window)

lets just say I can get the panel with this.getTabPanel() where do I go from there to activate it's first tab?

vietits
11 Apr 2012, 4:56 AM
this.getTabPanel().setActiveTab(0);