Hi,
I have an
applet with several of my own beans on it. One of them is a panel with a JTabbedPane on it, with four tabs. I want to know, from another bean, which of those tabs is currently selected.
My actual line of code is :
int index = topLevelApplet.theResultsPanel.ResultsTabs.getSelectedIndex();
but index always has the value 0, no matter which tab is selected.
I'm fairly sure I'm reffering to the correct thing, because I get no compilation errors, and also because
int index = topLevelApplet.theResultsPanel.ResultsTabs.getTabCount();
returns the value 4 - for the 4 Tabs as I expect.
Any clues as to where I should look for the error ?
Thanks,
Kate