Tutorial: Java ME and the command pattern

Dr. Dobbs has a tutorial demonstrating the command pattern in Java ME. (Background on the command pattern at Wikipedia.) It's a neat way to handle the endless if-else blocks that often end up driving MIDlet UI code.