To follow up on the above. I had not realised that you had to store a reference to the prior form. So screenSales has to have
private screenMainMenu myMainMenu = null; to able to return to that screen. I think that was the point that confused me the most. I have a dotnet background, where if you exit a form it automatically displays the prior form. Now its a bit clearer.
Anyway, still two more questions.
1) I'd like to add a menu to screenMainMenu. I can't get it to work though.
Code for the menu is here, how would I get this to show when screenMainMenu is launched?
private static final
String[] elements = { "Sales", "Purchases" };
private final List menu = new List("Choose", List.IMPLICIT, elements, null);
2) In screenSales, the buttons displayed are actually "Options" and "Back". if I click Options, then I get the Exit button then. How do I keep Exit on the right, with Back in the middle?