GUI Builder sidemenu bugs

17 views
Skip to first unread message

howud...@gmail.com

unread,
Jun 29, 2016, 8:16:04 PM6/29/16
to CodenameOne Discussions
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>



Shai Almog

unread,
Jun 30, 2016, 12:09:45 AM6/30/16
to CodenameOne Discussions, howud...@gmail.com
Can you file an issue on those?
Thanks.
Reply all
Reply to author
Forward
0 new messages