Begin change

CommandPrompter class

The CommandPrompter class prompts for the parameter on a given command. The CommandPrompter offers functionality that is similar to the iSeries CL command prompt (pressing F4) and the same as the Management Central command prompt.

To use the CommandPrompter, the server must be running OS/400 V4R4 or later. For more information, see iSeries iSeries Navigator Information APARs and view the Required Fixes for Graphical Command Prompter Support.

Using CommandPrompter also requires that you have the following jar files in your CLASSPATH:

All of the jar files, except for jhall.jar, are included in Toolbox for Java. For more information about Toolbox for Java jar files, see Jar files. For more information about downloading jhall.jar, see the Sun JavaHelp(TM) Web site Link outside Information Center.

To construct a CommandPrompter object, you pass it parameters for the parent frame that launches the prompter, the AS400 object on which the command will be prompted, and the command string. The command string can be a command name, a full command string, or a partial command name, such as crt*.

The CommandPrompter display is a modal dialog that the user must close before returning to the parent frame. The CommandPrompter handles any errors encountered during prompting.

Example: Using CommandPrompter with the CommandCall and AS400Message classes to prompt for and run a command End change