Example #1
0
  public TrivialMauiApplication(Object aInitializer) {
    super(aInitializer, "Trivial Maui App");

    window = new MFrame("Trivial Maui App", 250);

    messageText = new MLabel(englishMessage);
    window.add(messageText);

    String[] selectListItems = {english, french, spanish, polish, german};
    messageSelector = new MSelectList(selectListItems);
    window.add(messageSelector);

    // OK MButton
    okayButton = new MButton("Change the language");
    okayButton.addActionListener(
        new MActionListener() {
          public void actionPerformed(MActionEvent event) {
            TrivialMauiApplication.this.updateMessage();
          }
        });
    window.add(okayButton);

    add(window);
  }