This tip demostrates a method of associating a CommandListener with a List. The setCommandListener(...) method is used and is inherited from Displayable class.

 List list = new List("List", Choice.IMPLICIT);

list.setCommandListener(new CommandListener( ) {
  public void commandAction(Command c, Displayable d) {
  
    // Handle notification from the List

  }
});

 

 

 Related Tips