title: change command text programmatically
body: <p>I want to change the text of the command in title bar programmatically but it is not happening. Why doesn't the command name "aaa" changes to "bbb" in the following code? </p>
  
  <pre><code>labourChargeSumCommand = new Command("") {
  
      @Override
      public void actionPerformed(ActionEvent evt) {
  
      }
  };
  labourChargeSumCommand.setCommandName("aaa");
  getToolbar().addCommandToRightBar(labourChargeSumCommand);
  
  cb1.addActionListener(e -&gt; {
      if (cb1.isSelected()) {
          labourChargeSumCommand.setCommandName("bbb");
          getToolbar().revalidate();
      }
  });
  </code></pre>
  
  <p>Update: all my code</p>
  
  <pre><code>public class MyApplication {
  
      private Form current;
      private Resources theme;
      Command labourChargeSumCommand;
  
      public void init(Object context) {
          theme = UIManager.initFirstTheme("/theme");
  
          // Enable Toolbar on all Forms by default
          Toolbar.setGlobalToolbar(true);
  
          // Pro only feature
          Log.bindCrashProtection(true);
      }
  
      public void start() {
          if (current != null) {
              current.show();
              return;
          }
          Form hi = new Form("Hi World", BoxLayout.y());
          hi.add(new Label("Hi World"));
          hi.show();
  
          labourChargeSumCommand = new Command("") {
  
              @Override
              public void actionPerformed(ActionEvent evt) {
  
              }
          };
          labourChargeSumCommand.setCommandName("aaa");
          hi.getToolbar().addCommandToRightBar(labourChargeSumCommand);
  
          Button bb = new Button("bb");
          bb.addActionListener(e -&gt; {
              if (true) {
                  labourChargeSumCommand.setCommandName("bbb");
                  System.out.println(labourChargeSumCommand.getCommandName());
                  hi.getToolbar().revalidate();
                  hi.getToolbar().repaint();
              }
          });
          hi.add(bb);
      }
  
  }
  </code></pre>
  
  <p>Here I have added a btn and kept code inside its action listener, that's all.</p>