The container now wraps the components so you need to do:

Container cnt = LayeredLayout.encloseIn(con, progress);
con.getParent().replace(con, cnt, null);

Then to remove the infinite progress:

cnt.getParent().replace(cnt,con, null);

Notice the last argument can be a transition like fade, slide or something 
else if you so desire.

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 
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to