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