1
votes

I'm trying to add multiple commands to my Form in Codename One, we used to use a regular Form without commandBehavior but that caused some issues so I added it.

This is what the old version looked liked enter image description here And this is what the new version looks like enter image description here

1

1 Answers

1
votes

You should switch addCommand() to getToolbar().addCommandToOverflow() or better yet getToolbar().addCommandToSideMenu*. You can also use one of the other getToolbar().addMaterialCommand* methods to add an icon with the command. This results in more consistent behavior between platforms.