Handling Commands

Handling Commands

The user interfaces we have seen so far do not give the user an option to interact with the program. To render this facility, we need to introduce the commands.

Creating Commands: Command()

Displaying commands: addCommand()

Just creating the commands do not make them visible to the user. You need to add the commands to a displayable object e.g. a Form.

Working with commands: CommandListener

Check the program CommandDemo.java