I have one query.i am creating 3 horizontal managers inside the vertical field manager. while compiling my code i am getting IllegalStatException.i am doing this.
VerticalFieldmanager vfm = new VerticalFieldManager();
HorizontalFieldManager hfm1 = new HorizontalFieldManager();
{somecode}
HorizontalFieldManager hfm1 = new HorizontalFieldManager();
{somecode}
HorizontalFieldManager hfm1 = new HorizontalFieldManager();
{somecode}
Then i am adding hfm's to the vfm
vfm.add(hfm1);
vfm.add(hfm1);
vfm.add(hfm1);
add(vfm);
i have done this but getting an exception.can anybody tell me solution for this..
You cant add the same field/manager to a manager over and over again.
you can do something like that using a for or a while and creating a new object inside and adding it to the parent manager