When using the following code, my app freezes in simulator in netbeans

36 views
Skip to first unread message

robh...@gmail.com

unread,
Oct 22, 2018, 8:22:11 PM10/22/18
to CodenameOne Discussions
 for (int ii = 0; ii <= 5; ii++){
           agregaboton(" some "+ii);
       }


private void agregaboton(String nombre){
        MultiButton mio = new MultiButton(nombre);
        mio.addActionListener(e-> {
            System.out.println("hola");
           
        });
        this.add(FlowLayout.encloseIn(mio));
    }

If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans
Simulator

Shai Almog

unread,
Oct 23, 2018, 12:25:10 AM10/23/18
to CodenameOne Discussions
Did you show the form eventually? If you don't show a form everything freezes.
I suggest running in the debugger to see where the app execution stops.
Message has been deleted

robh...@gmail.com

unread,
Oct 23, 2018, 1:32:27 PM10/23/18
to CodenameOne Discussions
Perform tests with the program that is in the following address https://github.com/codenameone/MaterialScreensUIKit/blob/master/src/com/codename1/uikit/materialscreens/ProfileForm.java and also freezes, but I discovered that if I first open the sidemenu twice before clicking on a multibutton it no longer freezes. Which may be ?

Shai Almog

unread,
Oct 24, 2018, 12:20:38 AM10/24/18
to CodenameOne Discussions
I just tried that demo and wasn't able to reproduce an issue. Can you provide steps for reproducing?

robh...@gmail.com

unread,
Oct 26, 2018, 1:19:13 AM10/26/18
to CodenameOne Discussions
it's the same case with the codename one build application for Android

Shai Almog

unread,
Oct 27, 2018, 12:27:42 AM10/27/18
to CodenameOne Discussions
I guess I don't understand the issue, I'll need a better explanation/video.
Reply all
Reply to author
Forward
0 new messages