JVM Languages
jcommand.txt
Associated article: Java ME and the Command Pattern
Tags: JVM Languages Design
Published source code accompanying the article by Darius Katz in which he examines the Command Pattern, which provides an efficient workaround for problems you might encounter with Java ME based development.
Java ME and the Command Pattern
by Darius Katz
Listing One
public void commandAction(Command command, Displayable d) {
if (command == firstCommand) {
textBox.setString("First command executed");
} else if (command == secondCommand) {
textBox.setString("Second command run");
} else ...


