1

This is my first question. I will try to be clear.

I need to make a back command in LWUIT that allows me to go back to a previous form and pass some parameters for some modifications of the form.

I can not use the Form.getBackCommand() because it returns the default back command and with that command i can not pass the parameters as i want to do.

How can i do that?

:)

bharath
  • 14,283
  • 16
  • 57
  • 95
Mun0n
  • 4,438
  • 4
  • 28
  • 46
  • I think I fixed it. Using the StateMachine.back() inside of my button´s method – Mun0n Aug 18 '11 at 13:00
  • Can you explain how to call the StateMachine ? Do I need other libraries to include in my project in order to use StateMachine ? –  Oct 27 '11 at 13:12
  • Make a question and I will answer, not here. – Mun0n Oct 28 '11 at 07:22

1 Answers1

5
  1. First add the command to the form: Form.addCommand(new Command("Back"));

  2. Add CommandListener: Form.addCommandListener(new ActionListsner());

  3. In the ActionListener show the previous form previousForm.showBack();

bharath
  • 14,283
  • 16
  • 57
  • 95
Mahdi Hijazi
  • 4,424
  • 3
  • 24
  • 29