command listener problems in MIDP
I am trying to get my Form to react on incoming commands but my commandlistener doesnt work.
I extend the class Form and implements the commandListener interface, like this
public class ReportForm extends Form implements CommandListener{
...
}
I implement the commandAction method like
public void commandAction(Command c,Displayable s){
append("hello!");
}
and in my constructor i set the commandListener :
setCommandListener(this);
But it seems that when I press a button the commandAction() method isn't called. Is there something else i should do to get it to work?
/Anders

