I added the back functionality to forms that call one another
A->B->C
I put a button on the toolbar, otherwise the back command is not visible.
Button backButton=new Button("back");
Command backCommand=new Command("Back") {
@Override
public void actionPerformed(ActionEvent evt) {
mainForm.showBack();
}
};
backButton.setCommand(backCommand);
getToolbar().add(BorderLayout.WEST,backButton);
but the result is a doubled toolbar, as you can see in the attached image.
And you can also see that the message is "Back", not "back".
So it's not the Button displayed there, but if I do not add it, nothing is
displayed. It's strange.
What's wrong?
Thanks in advance
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/252e21b9-364d-4a4d-8b1a-876f27d197e7o%40googlegroups.com.