It is probably because you are trying to call setSelectedIndex() before adding any content to the tab pane.
On Dec 3, 2010, at 12:38 PM, Jamal BERRICH wrote: > i have this error :( > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > index 0 out of bounds. > at > org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577) > at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346) > at org.apache.pivot.wtk.TabPane$TabSequence.get(TabPane.java:134) > > 2010/12/3 Greg Brown <[email protected]> > > I can see one major reason to use java code : in java, we have > > auto-completion, in xml we don't. > > That's true, and it would be a really nice feature to have. Even without it, > I think I'd still lean towards XML over Java simply for maintenance reasons. > But that's just my opinion. :-) > > G > >
