Witam
mój problem polega na tym, że w commandAction nie działa mi komenda, która miała przekierować z menu (super) do form

te komendy nie działają

  if(command.equals("O_programie"))
         {
             d();
         }
lub
        if (command == wybierz)
        {
        }

główne menu pokazuje

import java.io.*;
import java.util.*;
import java.util.Vector;
import javax.microedition.io.*;   
import javame_000001.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
 
public final class menu_glowne0 extends u0
{
    private Display display;
    private Displayable Displayable_a;
    private Command cofnij = new Command("Cofnij", Command.BACK, 2);
    private Command wyjscie = new Command("Wyjscie", Command.EXIT, 2);
    private Command wybierz = new Command("Wybierz", Command.OK, 2);
    private Command legenda = new Command("Legenda", Command.HELP, 2);
   
    private Command h;
    private Form form1,legendaa,legendab; 
    private StringItem opis1 = new StringItem("g");
    private StringItem opis2 = new StringItem("f");
    private StringItem opis3 = new StringItem("e");
    private StringItem opis4 = new StringItem("d");
    private StringItem opis5 = new StringItem("c");
    private StringItem opis6 = new StringItem("b");
    private StringItem opis7 = new StringItem("a");
    public int a_int;

    private static rozw rozw = new rozw("ssss", new rozw[]
    {
    }
    );
      private static  String[] menu_g = {   
  //   private static String[] ooo = {   
       
        "aa" ,
         "bb",   
        "O_programie"   
    };

   public menu_glowne0()
    {
     this(rozw);
    }
   
   private menu_glowne0(rozw w1)
    {
     
   super("test", menu_g,0 , null);
     addCommand(wybierz);
     addCommand(wyjscie);
     setCommandListener(this); 
    }
     
     private void aaa(String s)
    {
         if("aa".equals(s))
         {
            d();
         }
         if("bb".equals(s))
         {
             d();
         } 
         if("O_programie".equals(s))   
         {
             d();
         }
    } 
    public final void commandAction(Command command, Displayable displayable)
    {
   switch(getSelectedIndex()) 
           {
      case 0:
        d();
        break;
      case 1:
        d();
        break;
      case 2:
        d();
        break;
      default:
           }
    super.commandAction(command, displayable); 
       
    }
    private Form d()
   {
      if (form1 == null)
    {
    form1 = new Form("O_programie");
    form1.append(opis1);
    form1.append(opis2);
    form1.append(opis3);
    form1.append(opis4);
    form1.append(opis5);
    form1.append(opis6);
    form1.addCommand(cofnij);
    form1.setCommandListener(this);
    }
   display.setCurrent(form1);
   return form1;
  } 
}

dziękuje za odpowiedz