How to add text message to InfiniteProgress

42 views
Skip to first unread message

Eyal Muchtar

unread,
Oct 11, 2013, 4:38:08 AM10/11/13
to codenameone...@googlegroups.com
Hi,
I'd like to add some information for user while displaying the InfiniteProgress Dialog.
I'm using the following code for display this dialog when connection to server established.
        InfiniteProgress prog =  new InfiniteProgress();        
       
Dialog dlg = prog.showInifiniteBlocking();
        connRequest
.setDisposeOnCompletion(dlg);
        networkManager
.addToQueueAndWait(connRequest);
        resBytes
= connRequest.getResponseData();
How it can be Done?

Shai Almog

unread,
Oct 11, 2013, 3:28:19 PM10/11/13
to codenameone...@googlegroups.com
Hi,
something like:
Dialog dlg = new Dialog("Loading");
BorderLayout bl = new BorderLayout();
bl
.setCenterBehavior(BorderLayout.CENTER_BEHAVIOR_CENTER);
dlg
.setLayout(bl);
dlg
.addComponent(BorderLayout.CENTER, new InfiniteProgress());
Label message = new Label("Message");
dlg
.addComponent(BorderLayout.SOUTH, message);
dlg
.showModless();


Reply all
Reply to author
Forward
0 new messages