[codenameone-discussions] Re: How to order the elements of a container

2018-11-27 Thread rdvg1962
Thanks On Sunday, November 25, 2018 at 11:22:34 PM UTC-5, Shai Almog wrote: > > Hi, > use addComponent(0, myComponent) to add a component to the first position. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from

[codenameone-discussions] Re: How to order the elements of a container

2018-11-25 Thread Shai Almog
Hi, use addComponent(0, myComponent) to add a component to the first position. -- 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

[codenameone-discussions] Re: How to order the elements of a container

2018-11-25 Thread rdvg1962
Hi, I already managed to do the ordering but I had to user the replace. I leave the code as a reference: public void ordenaContenedorMayorMenor(Container cnC) { Container cnResp = new Container(BoxLayout.y()); if (cnC.getComponentCount() > 0) { for (int i = 0; i