Impossible to set form title with method setTitleComponent

18 views
Skip to first unread message

hussein chaibou

unread,
Jul 17, 2016, 6:39:07 AM7/17/16
to CodenameOne Discussions
Hi,
i am enjoying this wonderful tool but i recently observe that i can't set form title with the method setTitleComponent
protected void beforeMain(Form f) {
       
Label titre = new Label("le titre");
        f
.setTitleComponent(titre);
   
}


I have this issue using NetBeans 8.1 on Win7 x64 on simulator.
Thanks

Shai Almog

unread,
Jul 18, 2016, 12:53:37 AM7/18/16
to CodenameOne Discussions
Hi,
thanks!
Try:
f.getToolbar().setTitleComponent(...);


Reply all
Reply to author
Forward
0 new messages