new gui builder side menu bugs:
- setToolBar is deprecated, use setToolbar (lowercase b)
- com.codename1.ui.Command cmd_ ... line needs indented one tab
- after closing brace on the same line after anonymous actionPerformed()
needs a ;
- cnlToolbar.addCommandToSideMenu is adding cmd_null instead of the
created variable
private void initGuiBuilderComponents(com.codename1.ui.util.Resources
resourceObjectInstance) {
setLayout(new com.codename1.ui.layouts.FlowLayout());
setTitle("FrmMain");
setName("FrmMain");
com.codename1.ui.Toolbar cn1Toolbar = getToolbar();
if(cn1Toolbar == null) {
cn1Toolbar = new com.codename1.ui.Toolbar();
setToolBar(cn1Toolbar);
}
com.codename1.ui.Command cmd_cmdDashboard = new
com.codename1.ui.Command("Dashboard") {
public void
actionPerformed(com.codename1.ui.events.ActionEvent ev) {
oncmdDashboard(ev, this);
}
}
cn1Toolbar.addCommandToSideMenu(cmd_null);
addComponent(gui_Label_1);
gui_Label_1.setText("Label");
gui_Label_1.setName("Label_1");
}// </editor-fold>
--
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
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/e8cb934e-5355-42e1-aae6-d3794ead9ce5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.