Applied following w/o results ManageTimeSheetsTab.setSelectedIndex(0, false); ManageTimeSheetsTab.setSelectedIndex(0);
Regards. On Friday, May 31, 2019 at 6:21:44 PM UTC-4, [email protected] wrote: > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 > Desktop OS Windows 10 Pro > Simulator latest > Device PC, IOS, Android > > I have a simple 2 element Tabs component and set the Tabs UIID to > "mpiTabMetal" > which has a foreground color for the unselected & selected states. > > ManageTimeSheetsTab = new Tabs(Component.TOP); > ManageTimeSheetsTab.setTabUIID("mpiTabMetal"); > ManageTimeSheetsTab.setSelectedIndex(0, true); > > The problem is tab index 0 is by default set initially in the Tabs class. > However the unselected state is being displayed when in fact the index is > selected. > > If I setSelectedIndex(1), both index tabs display the correct states > Any subsequent selections display correctly. Only the initial > instantiation does the problem surface. > > Attached Image TabsInitialStateIndex_0_isSet.PNG shows the 2 tabs as > "unselected" > Attached Image TabsInitialStateIndex_1_isSet.PNG shows the 2 tabs as > "unselected" > > Attached Image UnselectedThemeUIID.PNG shows the Unselected state. > Attached Image SelectedThemeUIID.PNG shows the Selected state. > > Thanks in advance > > Regards. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/ef5029b2-18c7-4c8f-be75-5d6a853a0fc3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
